Commit 4e109c2f authored by Mikaël Salson's avatar Mikaël Salson

Merge branch 'hotfix-c/3694-vmi-chrome42' into 'dev'

VMI with chrome42

See merge request !397
parents c64a4c96 7ccfd6e6
Pipeline #61384 failed with stages
in 3 minutes and 43 seconds
......@@ -234,7 +234,10 @@ VMI.prototype = {
},
create_panel : function(child_id, parent_div_id, add_to_available=false) {
create_panel : function(child_id, parent_div_id, add_to_available) {
if (typeof(add_to_available) === 'undefined') {
add_to_available = false;
}
var parent_div = document.getElementById(parent_div_id)
// verify parent_div
if (parent_div == null){
......@@ -269,7 +272,10 @@ VMI.prototype = {
/**
* todo : transmettre par un paramètre la création des panels : exemple --> {"AB": ["A","B"], "C": ["C"]}
*/
setupPanels : function(instructions, parent_div="vmi-panels"){
setupPanels : function(instructions, parent_div){
if (typeof(parent_div) === 'undefined') {
parent_div = "vmi-panels";
}
// determiner si instruction est une liste ou un dico
if (Array.isArray(instructions)){
......
{
"asi" : true
"asi" : true,
"esversion": 5
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment