correction, il faut tester l'existance du tableau_deux
This commit is contained in:
parent
3ff96d4782
commit
72c86e44e3
2 changed files with 9 additions and 4 deletions
|
@ -863,8 +863,10 @@ const gamuTable = {
|
|||
this.$refs.montableau.chargerJson(id);
|
||||
},
|
||||
rechargerJson_deux(id, ajaxCrayons = true) {
|
||||
this.$refs.montableau.ajaxCrayons = ajaxCrayons;
|
||||
this.$refs.montableau_deux.chargerJson(id);
|
||||
if (this.$refs.montableau_deux) {
|
||||
this.$refs.montableau_deux.ajaxCrayons = ajaxCrayons;
|
||||
this.$refs.montableau_deux.chargerJson(id);
|
||||
}
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
|
@ -843,8 +843,11 @@ var gamuTable = {
|
|||
},
|
||||
rechargerJson_deux: function rechargerJson_deux(id) {
|
||||
var ajaxCrayons = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
||||
this.$refs.montableau.ajaxCrayons = ajaxCrayons;
|
||||
this.$refs.montableau_deux.chargerJson(id);
|
||||
|
||||
if (this.$refs.montableau_deux) {
|
||||
this.$refs.montableau_deux.ajaxCrayons = ajaxCrayons;
|
||||
this.$refs.montableau_deux.chargerJson(id);
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue