Commit 6172fa5c authored by Roque's avatar Roque

erp5_officejs: fix jslint errors

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