Commit 7add978b authored by Romain Courteaud's avatar Romain Courteaud

[erp5_web_renderjs_ui] Do not forget to animate the spinner

parent 02453750
...@@ -360,11 +360,17 @@ ...@@ -360,11 +360,17 @@
}\n }\n
}\n }\n
if (right_button !== undefined) {\n if (right_button !== undefined) {\n
if (right_button.icon === \'spinner\') {\n
right_button.class = "ui-disabled ui-icon-spin";\n
}\n
promise_list.push(gadget.translateHtml(header_button_template(right_button)));\n promise_list.push(gadget.translateHtml(header_button_template(right_button)));\n
} else if (right_link !== undefined) {\n } else if (right_link !== undefined) {\n
if (right_link.icon === \'spinner\') {\n
right_link.class = "ui-disabled ui-icon-spin";\n
}\n
promise_list.push(gadget.translateHtml(header_link_template(right_link)));\n promise_list.push(gadget.translateHtml(header_link_template(right_link)));\n
} else {\n } else {\n
promise_list.push(gadget.translateHtml(""));\n promise_list.push("");\n
}\n }\n
\n \n
// Handle sub header\n // Handle sub header\n
...@@ -574,7 +580,7 @@ ...@@ -574,7 +580,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>947.51114.9187.52923</string> </value> <value> <string>948.17414.26904.28091</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -592,7 +598,7 @@ ...@@ -592,7 +598,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1450107450.54</float> <float>1452006752.82</float>
<string>UTC</string> <string>UTC</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