Commit 73a6559e authored by Nicolas's avatar Nicolas

close infos en vue reste passif

parent a5c150a8
......@@ -353,21 +353,21 @@ window.W = window.W || {};
var $target = $(e.target);
var infos_div = $target.parent().parent();
var selected = infos_div.find("#contingent").is(':checked');
// this.model.set("contingent", selected);
var selected_m = infos_div.find("#module_").is(':checked');
// this.model.set("module_", selected);
var selected_a = infos_div.find("#aspect").val();
var selected_indications = infos_div.find("#indications").val();
// this.model.set("aspect", selected_a);
this.model.set({
"contingent": selected,
"module_": selected_m,
"aspect": selected_a,
"indications": selected_indications
});
if(W.edit_mode){
var selected = infos_div.find("#contingent").is(':checked');
// this.model.set("contingent", selected);
var selected_m = infos_div.find("#module_").is(':checked');
// this.model.set("module_", selected);
var selected_a = infos_div.find("#aspect").val();
var selected_indications = infos_div.find("#indications").val();
// this.model.set("aspect", selected_a);
this.model.set({
"contingent": selected,
"module_": selected_m,
"aspect": selected_a,
"indications": selected_indications
});
}
infos_div.hide();
//this.render();
//console.log(infos);
......
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