Commit af4e4819 authored by Thomas Gambier's avatar Thomas Gambier 🚴🏼 Committed by Rafael Monnerat

slapos_jio: fix lint for gadget_erp5_page_slap_computer_view.js

parent afeff2aa
/*global window, rJS, RSVP, jIO, Blob */
/*global window, rJS, RSVP */
/*jslint nomen: true, indent: 2, maxerr: 3 */
(function (window, rJS, RSVP, jIO, Blob) {
(function (window, rJS, RSVP) {
"use strict";
rJS(window)
......@@ -82,7 +82,7 @@
})
.declareMethod("render", function (options) {
var gadget = this, data;
var gadget = this;
// Follow up changeState API but it is requires to actually
// re-render the form to hide allocation scope
gadget.state = {
......@@ -102,8 +102,7 @@
]);
})
.push(function (results) {
var editable = gadget.state.editable,
form_gadget = results[0],
var form_gadget = results[0],
computer_network_list = [["", ""]],
column_list = [
['SoftwareInstallation_getSoftwareReleaseInformation', 'Software Release'],
......@@ -132,12 +131,13 @@
['Open for Personal use only', 'open/personal'],
['Open Public', 'open/public'],
['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) {
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
]);
}
......@@ -356,4 +356,4 @@
return gadget.updateHeader(header_dict);
});
});
}(window, rJS, RSVP, jIO, Blob));
\ No newline at end of file
}(window, rJS, RSVP));
\ 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