Commit 2ab4632c authored by Romain Courteaud's avatar Romain Courteaud

[erp5_web_renderjs_ui] Header check if 'save_action' exists as a property

parent b23547c4
......@@ -83,16 +83,19 @@
]);
})
.push(function (all_result) {
return form_gadget.updateHeader({
var header_dict = {
tab_url: all_result[0],
actions_url: all_result[1],
add_url: all_result[2],
selection_url: all_result[3],
delete_url: all_result[4],
cut_url: "",
page_title: all_result[6],
save_action: all_result[5]
});
page_title: all_result[6]
};
if (all_result[5] === true) {
header_dict.save_action = true;
}
return form_gadget.updateHeader(header_dict);
});
})
......
......@@ -230,7 +230,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>954.5631.5200.57036</string> </value>
<value> <string>954.5679.65163.53162</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -248,7 +248,7 @@
</tuple>
<state>
<tuple>
<float>1474549439.64</float>
<float>1475668916.27</float>
<string>UTC</string>
</tuple>
</state>
......
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