Commit 4cc953e8 authored by Romain Courteaud's avatar Romain Courteaud

[erp5_web_renderjs_ui] Keep header refresh in the promise tree.

This will allow to catch possible errors.
parent 3641e27a
...@@ -583,8 +583,6 @@ ...@@ -583,8 +583,6 @@
\n \n
// go to the top of the page\n // go to the top of the page\n
window.scrollTo(0, 0);\n window.scrollTo(0, 0);\n
\n
updateHeader(gadget);\n
\n \n
// Clear first to DOM, append after to reduce flickering/manip\n // Clear first to DOM, append after to reduce flickering/manip\n
while (element.firstChild) {\n while (element.firstChild) {\n
...@@ -600,6 +598,9 @@ ...@@ -600,6 +598,9 @@
input.focus();\n input.focus();\n
input.select();\n input.select();\n
}\n }\n
\n
\n
return updateHeader(gadget);\n
// XXX Drop notification\n // XXX Drop notification\n
// return header_gadget.notifyLoaded();\n // return header_gadget.notifyLoaded();\n
});\n });\n
...@@ -788,7 +789,7 @@ ...@@ -788,7 +789,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>946.36189.7510.51302</string> </value> <value> <string>946.38651.7361.44032</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -806,7 +807,7 @@ ...@@ -806,7 +807,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1445354882.08</float> <float>1445593354.44</float>
<string>GMT</string> <string>GMT</string>
</tuple> </tuple>
</state> </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