Commit ce885bda authored by Romain Courteaud's avatar Romain Courteaud

[erp5_web_renderjs_ui] Submit button must be enabled when updating the dialog

parent e0d26048
......@@ -287,6 +287,7 @@
})
.push(function (all_result) {
form_gadget.element.querySelector('a.dialogcancel').href = all_result[0];
form_gadget.enableButtonAsJob();
return form_gadget.updateHeader({
cancel_url: all_result[0],
page_title: all_result[1]
......@@ -313,7 +314,7 @@
}
}, false, false)
.declareService(function enableButton() {
.declareJob('enableButtonAsJob', function enableButton() {
// click event listener is now activated
// Change the state of the gadget
var gadget = this,
......
......@@ -222,7 +222,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>976.34018.48815.32699</string> </value>
<value> <string>976.33967.49279.34713</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -240,7 +240,7 @@
</tuple>
<state>
<tuple>
<float>1561041762.03</float>
<float>1561026274.02</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