Commit 08a8a75f authored by Gabriel Monnerat's avatar Gabriel Monnerat

erp5_web_renderjs_ui: clean up

parent f3f44c09
/*jslint indent: 2, maxerr: 3, nomen: true */ /*jslint indent: 2, maxerr: 3, nomen: true */
/*global window, document, rJS, URI, RSVP, isEmpty, console, domsugar*/ /*global window, document, rJS, URI, RSVP, isEmpty, console, domsugar*/
(function (window, document, rJS, URI, RSVP, isEmpty, console, domsugar) { (function (window, rJS, URI, RSVP, isEmpty, console, domsugar) {
"use strict"; "use strict";
var variable = {}, var variable = {},
...@@ -745,7 +745,6 @@ ...@@ -745,7 +745,6 @@
domsugar("tfoot") domsugar("tfoot")
]), ]),
th_element_list = [], th_element_list = [],
tr_element,
th_element; th_element;
if (gadget.state.show_select_action) { if (gadget.state.show_select_action) {
...@@ -1154,11 +1153,10 @@ ...@@ -1154,11 +1153,10 @@
loading_element.textContent = '(' + pagination_message + ')'; loading_element.textContent = '(' + pagination_message + ')';
}) })
.push(function () { .push(function () {
var div, var div = domsugar("div", {"class": "graphic-section"}),
gadget_list = [], gadget_list = [],
domain_list = JSON.parse(gadget.state.domain_list_json); domain_list = JSON.parse(gadget.state.domain_list_json);
div = domsugar("div", {"class": "graphic-section"}); gadget.element.insertBefore(div, gadget.element.firstChild);
gadget.element.appendChild(div);
gadget_list.push( gadget_list.push(
gadget.declareGadget('gadget_graphic.html', { gadget.declareGadget('gadget_graphic.html', {
scope: 'gadget_graphic', scope: 'gadget_graphic',
...@@ -1169,7 +1167,7 @@ ...@@ -1169,7 +1167,7 @@
div = domsugar("div", { div = domsugar("div", {
"class": "graphic-section " + domain_list[i][0] "class": "graphic-section " + domain_list[i][0]
}); });
gadget.element.appendChild(div); gadget.element.insertBefore(div, gadget.element.firstChild);
gadget_list.push( gadget_list.push(
gadget.declareGadget('gadget_graphic.html', { gadget.declareGadget('gadget_graphic.html', {
scope: 'gadget_graphic_' + domain_list[i][0], scope: 'gadget_graphic_' + domain_list[i][0],
...@@ -1187,7 +1185,6 @@ ...@@ -1187,7 +1185,6 @@
group_by, group_by,
group_by_title, group_by_title,
domain_id, domain_id,
layout,
domain; domain;
for (domain_id in domain_dict) { for (domain_id in domain_dict) {
if (domain_dict.hasOwnProperty(domain_id)) { if (domain_dict.hasOwnProperty(domain_id)) {
...@@ -1252,7 +1249,6 @@ ...@@ -1252,7 +1249,6 @@
}); });
}); });
} }
return result_queue; return result_queue;
}) })
......
...@@ -240,7 +240,7 @@ ...@@ -240,7 +240,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>994.13949.44825.36573</string> </value> <value> <string>994.19974.6495.18244</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -258,7 +258,7 @@ ...@@ -258,7 +258,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1629394496.1</float> <float>1629755936.08</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