Commit e96cea83 authored by Romain Courteaud's avatar Romain Courteaud

[erp5_web_renderjs_ui] Refresh the page after saving a document

This allow to update the page title and to get the new form rendering, based on tales expression
parent 1039d977
......@@ -126,6 +126,7 @@
.declareAcquiredMethod("jio_putAttachment", "jio_putAttachment")\n
.declareAcquiredMethod("translateHtml", "translateHtml")\n
.declareAcquiredMethod("getUrlFor", "getUrlFor")\n
.declareAcquiredMethod("redirect", "redirect")\n
.declareAcquiredMethod("updateHeader", "updateHeader")\n
.declareAcquiredMethod("notifySubmitting", "notifySubmitting")\n
.declareAcquiredMethod("notifySubmitted", "notifySubmitted")\n
......@@ -223,6 +224,9 @@
]);\n
})\n
.push(form_gadget.notifySubmitted.bind(form_gadget))\n
.push(function () {\n
return form_gadget.redirect({command: \'reload\'});\n
})\n
.push(undefined, function (error) {\n
if ((error.target !== undefined) && (error.target.status === 400)) {\n
return form_gadget.notifySubmitted()\n
......@@ -385,7 +389,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>948.17477.48819.45363</string> </value>
<value> <string>948.17478.43228.61201</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -403,7 +407,7 @@
</tuple>
<state>
<tuple>
<float>1452009999.57</float>
<float>1452010729.12</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