Commit 6172fa5c authored by Roque's avatar Roque

erp5_officejs: fix jslint errors

parent d16ab053
Pipeline #12559 failed with stage
in 0 seconds
...@@ -22,7 +22,8 @@ ...@@ -22,7 +22,8 @@
div.innerHTML = head_inner_html; div.innerHTML = head_inner_html;
script_list = div.getElementsByTagName('script'); script_list = div.getElementsByTagName('script');
i = script_list.length; i = script_list.length;
while (i--) { while (i > 0) {
i -= 1;
script_list[i].parentNode.removeChild(script_list[i]); script_list[i].parentNode.removeChild(script_list[i]);
} }
return div.innerHTML; return div.innerHTML;
...@@ -45,6 +46,7 @@ ...@@ -45,6 +46,7 @@
}) })
.declareMethod('handleSubmit', function (content_dict, parent_options) { .declareMethod('handleSubmit', function (content_dict, parent_options) {
/*jslint unparam: true*/
var gadget = this, var gadget = this,
notebook_html, notebook_html,
return_submit_dict = {}; return_submit_dict = {};
...@@ -94,5 +96,6 @@ ...@@ -94,5 +96,6 @@
}); });
}); });
}); });
/*jslint unparam: false*/
}(window, document, rJS, RSVP, Blob, console)); }(window, document, rJS, RSVP, Blob, console));
\ No newline at end of file
...@@ -240,7 +240,7 @@ ...@@ -240,7 +240,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>988.12762.62453.43076</string> </value> <value> <string>988.23938.58913.40772</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>1606248876.05</float> <float>1606832980.12</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
...@@ -8,7 +8,8 @@ ...@@ -8,7 +8,8 @@
div.innerHTML = head_inner_html; div.innerHTML = head_inner_html;
script_list = div.getElementsByTagName('script'); script_list = div.getElementsByTagName('script');
i = script_list.length; i = script_list.length;
while (i--) { while (i > 0) {
i -= 1;
script_list[i].parentNode.removeChild(script_list[i]); script_list[i].parentNode.removeChild(script_list[i]);
} }
return div.innerHTML; return div.innerHTML;
...@@ -38,8 +39,8 @@ ...@@ -38,8 +39,8 @@
}) })
.declareMethod('handleSubmit', function (content_dict, parent_options) { .declareMethod('handleSubmit', function (content_dict, parent_options) {
var gadget = this, /*jslint unparam: true*/
notebook_html, var notebook_html,
print_preview_window, print_preview_window,
return_submit_dict = {}; return_submit_dict = {};
return_submit_dict.redirect = { return_submit_dict.redirect = {
...@@ -89,5 +90,6 @@ ...@@ -89,5 +90,6 @@
}); });
}); });
}); });
/*jslint unparam: false*/
}(window, document, rJS, RSVP, console)); }(window, document, rJS, RSVP, console));
\ No newline at end of file
...@@ -240,7 +240,7 @@ ...@@ -240,7 +240,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>988.12760.40834.1109</string> </value> <value> <string>988.23905.19047.17868</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>1606248884.54</float> <float>1606833298.97</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
/*global window, rJS, RSVP, Blob, jIO */ /*global window, rJS */
/*jslint nomen: true, indent: 2, maxerr: 3 */ /*jslint nomen: true, indent: 2, maxerr: 3 */
(function (window, rJS, RSVP, Blob, jIO) { (function (window, rJS) {
"use strict"; "use strict";
rJS(window) rJS(window)
...@@ -29,10 +29,6 @@ ...@@ -29,10 +29,6 @@
}; };
return document; return document;
}); });
})
.declareMethod('handleSubmit', function (content_dict, parent_options) {
return {};
}); });
}(window, rJS, RSVP, Blob, jIO)); }(window, rJS));
\ No newline at end of file \ No newline at end of file
...@@ -240,7 +240,7 @@ ...@@ -240,7 +240,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>987.39350.58944.42461</string> </value> <value> <string>988.23920.19966.32136</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>1604954142.0</float> <float>1606831725.23</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