mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-09 01:05:58 +00:00
jslint: fix missing or extra semicolon
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
604881d0bd
commit
a764c5f72e
@ -1,7 +1,7 @@
|
|||||||
/*global IP4_match, IP4_cidr_match, IP6_match, IP6_cidr_match, IP64_match*/
|
/*global IP4_match, IP4_cidr_match, IP6_match, IP6_cidr_match, IP64_match*/
|
||||||
// ExtJS related things
|
// ExtJS related things
|
||||||
|
|
||||||
PVE.Utils.toolkit = 'extjs',
|
PVE.Utils.toolkit = 'extjs';
|
||||||
|
|
||||||
// do not send '_dc' parameter
|
// do not send '_dc' parameter
|
||||||
Ext.Ajax.disableCaching = false;
|
Ext.Ajax.disableCaching = false;
|
||||||
|
@ -975,11 +975,11 @@ Ext.define('PVE.Utils', { statics: {
|
|||||||
}
|
}
|
||||||
} else if (value === 'node') {
|
} else if (value === 'node') {
|
||||||
if (record.data.running) {
|
if (record.data.running) {
|
||||||
gridcls = '-online'
|
gridcls = '-online';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var fa = '<i class="fa fa-fw x-fa-grid' + gridcls + ' fa-' + icon + '"></i> '
|
var fa = '<i class="fa fa-fw x-fa-grid' + gridcls + ' fa-' + icon + '"></i> ';
|
||||||
return fa + value;
|
return fa + value;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -467,7 +467,7 @@ Ext.define('PVE.dc.BackupView', {
|
|||||||
} else if (item == 1) {
|
} else if (item == 1) {
|
||||||
days.push(Ext.Date.dayNames[(cur+1)%7]);
|
days.push(Ext.Date.dayNames[(cur+1)%7]);
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
return days.join(', ');
|
return days.join(', ');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -33,7 +33,7 @@ Ext.define('PVE.form.MemoryField', {
|
|||||||
for (j = 0; j < 9; j++) {
|
for (j = 0; j < 9; j++) {
|
||||||
for (i = 0; i < 32; i++) {
|
for (i = 0; i < 32; i++) {
|
||||||
if ((value >= current_size) && (value < (current_size + dimm_size))) {
|
if ((value >= current_size) && (value < (current_size + dimm_size))) {
|
||||||
value_start = current_size,
|
value_start = current_size;
|
||||||
value_up = current_size + dimm_size;
|
value_up = current_size + dimm_size;
|
||||||
value_down = current_size - ((i === 0) ? prev_dimm_size : dimm_size);
|
value_down = current_size - ((i === 0) ? prev_dimm_size : dimm_size);
|
||||||
}
|
}
|
||||||
|
@ -274,7 +274,7 @@ Ext.define('PVE.FirewallRuleEdit', {
|
|||||||
field.setValue(1);
|
field.setValue(1);
|
||||||
Ext.Function.defer(function() {
|
Ext.Function.defer(function() {
|
||||||
var form = ipanel.up('form').getForm();
|
var form = ipanel.up('form').getForm();
|
||||||
form.markInvalid(values.errors)
|
form.markInvalid(values.errors);
|
||||||
}, 100);
|
}, 100);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -116,7 +116,9 @@ Ext.define('PVE.ha.VMResourceEdit', {
|
|||||||
var regex = /^(\S+):(\S+)$/;
|
var regex = /^(\S+):(\S+)$/;
|
||||||
var res = regex.exec(values.sid);
|
var res = regex.exec(values.sid);
|
||||||
|
|
||||||
if (res[1] !== 'vm' && res[1] !== 'ct') { throw "got unexpected resource type"; };
|
if (res[1] !== 'vm' && res[1] !== 'ct') {
|
||||||
|
throw "got unexpected resource type";
|
||||||
|
}
|
||||||
|
|
||||||
values.vmid = res[2];
|
values.vmid = res[2];
|
||||||
|
|
||||||
|
@ -46,7 +46,9 @@ Ext.define('PVE.ha.ResourcesView', {
|
|||||||
var regex = /^(\S+):(\S+)$/;
|
var regex = /^(\S+):(\S+)$/;
|
||||||
var res = regex.exec(sid);
|
var res = regex.exec(sid);
|
||||||
|
|
||||||
if (res[1] !== 'vm' && res[1] !== 'ct') { return; };
|
if (res[1] !== 'vm' && res[1] !== 'ct') {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
var vmid = res[2];
|
var vmid = res[2];
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@ Ext.define('PVE.node.Subscription', {
|
|||||||
var getReportFileName = function() {
|
var getReportFileName = function() {
|
||||||
var now = Ext.Date.format(new Date(), 'D-d-F-Y-G-i');
|
var now = Ext.Date.format(new Date(), 'D-d-F-Y-G-i');
|
||||||
return me.nodename + '-report-' + now + '.txt';
|
return me.nodename + '-report-' + now + '.txt';
|
||||||
}
|
};
|
||||||
|
|
||||||
var view = Ext.createWidget('component', {
|
var view = Ext.createWidget('component', {
|
||||||
itemId: 'system-report-view',
|
itemId: 'system-report-view',
|
||||||
|
@ -108,7 +108,7 @@ Ext.define('PVE.qemu.ProcessorEdit', {
|
|||||||
initComponent : function() {
|
initComponent : function() {
|
||||||
var me = this;
|
var me = this;
|
||||||
|
|
||||||
var ipanel = Ext.create('PVE.qemu.ProcessorInputPanel')
|
var ipanel = Ext.create('PVE.qemu.ProcessorInputPanel');
|
||||||
|
|
||||||
Ext.apply(me, {
|
Ext.apply(me, {
|
||||||
subject: gettext('Processors'),
|
subject: gettext('Processors'),
|
||||||
|
Loading…
Reference in New Issue
Block a user