Commit e760ef6e authored by Thomas Gambier's avatar Thomas Gambier 🚴🏼

slapos_jio: fix lint for gadget_erp5_page_slap_computer_view.js

parent 477abb60
/*global window, rJS, RSVP, jIO, Blob */ /*global window, rJS, RSVP */
/*jslint nomen: true, indent: 2, maxerr: 3 */ /*jslint nomen: true, indent: 2, maxerr: 3 */
(function (window, rJS, RSVP, jIO, Blob) { (function (window, rJS, RSVP) {
"use strict"; "use strict";
rJS(window) rJS(window)
...@@ -43,9 +43,9 @@ ...@@ -43,9 +43,9 @@
}; };
} }
result.data.rows[i].value["listbox_uid:list"] = { result.data.rows[i].value["listbox_uid:list"] = {
key: "listbox_uid:list", key: "listbox_uid:list",
value: 2713 value: 2713
}; };
} }
return result; return result;
}); });
...@@ -82,7 +82,7 @@ ...@@ -82,7 +82,7 @@
}) })
.declareMethod("render", function (options) { .declareMethod("render", function (options) {
var gadget = this, data; var gadget = this;
// Follow up changeState API but it is requires to actually // Follow up changeState API but it is requires to actually
// re-render the form to hide allocation scope // re-render the form to hide allocation scope
gadget.state = { gadget.state = {
...@@ -102,8 +102,7 @@ ...@@ -102,8 +102,7 @@
]); ]);
}) })
.push(function (results) { .push(function (results) {
var editable = gadget.state.editable, var form_gadget = results[0],
form_gadget = results[0],
computer_network_list = [["", ""]], computer_network_list = [["", ""]],
column_list = [ column_list = [
['SoftwareInstallation_getSoftwareReleaseInformation', 'Software Release'], ['SoftwareInstallation_getSoftwareReleaseInformation', 'Software Release'],
...@@ -132,12 +131,13 @@ ...@@ -132,12 +131,13 @@
['Open for Personal use only', 'open/personal'], ['Open for Personal use only', 'open/personal'],
['Open Public', 'open/public'], ['Open Public', 'open/public'],
['Open for Subscribers only', 'open/subscription']], ['Open for Subscribers only', 'open/subscription']],
i, value, len = results[1].data.total_rows; i,
len = results[1].data.total_rows;
for (i = 0; i < len; i += 1) { for (i = 0; i < len; i += 1) {
computer_network_list.push([ computer_network_list.push([
results[1].data.rows[i].value.title ? results[1].data.rows[i].value.title : results[1].data.rows[i].value.reference, results[1].data.rows[i].value.title || results[1].data.rows[i].value.reference,
results[1].data.rows[i].id results[1].data.rows[i].id
]); ]);
} }
...@@ -313,12 +313,12 @@ ...@@ -313,12 +313,12 @@
group_list: [[ group_list: [[
"left", "left",
[["my_title"], ["my_reference"], ["my_subordination"], [["my_title"], ["my_reference"], ["my_subordination"],
['my_monitoring_status']] ['my_monitoring_status']]
], [ ], [
"right", "right",
[["my_source"], ["my_source_project"], ["my_monitor_scope"], [["my_source"], ["my_source_project"], ["my_monitor_scope"],
["my_upgrade_scope"], ["my_allocation_scope"], ["my_upgrade_scope"], ["my_allocation_scope"],
["my_subject_list"]] ["my_subject_list"]]
], [ ], [
"bottom", "bottom",
[["ticket_listbox"], ["listbox"]] [["ticket_listbox"], ["listbox"]]
...@@ -356,4 +356,4 @@ ...@@ -356,4 +356,4 @@
return gadget.updateHeader(header_dict); return gadget.updateHeader(header_dict);
}); });
}); });
}(window, rJS, RSVP, jIO, Blob)); }(window, rJS, RSVP));
\ No newline at end of file \ No newline at end of file
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