]> git.proxmox.com Git - pve-manager.git/commitdiff
jslint: fix missing or extra semicolon
authorDominik Csapak <d.csapak@proxmox.com>
Fri, 29 Apr 2016 10:06:30 +0000 (12:06 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 29 Apr 2016 15:07:42 +0000 (17:07 +0200)
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
www/manager6/Toolkit.js
www/manager6/Utils.js
www/manager6/dc/Backup.js
www/manager6/form/MemoryField.js
www/manager6/grid/FirewallRules.js
www/manager6/ha/ResourceEdit.js
www/manager6/ha/Resources.js
www/manager6/node/Subscription.js
www/manager6/qemu/ProcessorEdit.js

index c12a20f81042f2231993b8858920b6ce7341ee99..f05f68b9b4a837ba3abc73a546c04a88ec6cd52c 100644 (file)
@@ -1,7 +1,7 @@
 /*global IP4_match, IP4_cidr_match, IP6_match, IP6_cidr_match, IP64_match*/
 // ExtJS related things
 
-PVE.Utils.toolkit = 'extjs',
+PVE.Utils.toolkit = 'extjs';
 
  // do not send '_dc' parameter
 Ext.Ajax.disableCaching = false;
index cf2960684c8c08ceca61f9819f167e34cc6d9367..4eac6cc0a7052388b51bf4eb0fbca5180c248acf 100644 (file)
@@ -975,11 +975,11 @@ Ext.define('PVE.Utils', { statics: {
            }
        } else if (value === 'node') {
            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;
     },
 
index 7647cb88bf935bdbe13c178290c07a440e1ea0e6..7d2c0381841593344e4374559f533a900da0e21a 100644 (file)
@@ -467,7 +467,7 @@ Ext.define('PVE.dc.BackupView', {
                            } else if (item == 1) {
                                days.push(Ext.Date.dayNames[(cur+1)%7]);
                            }
-                       })
+                       });
                        return days.join(', ');
                    }
                },
index 1d8bdb23446fed1d362c73a6b60e3ca407abaa9a..3a09697b990d561514c048ac40fb110086c520bf 100644 (file)
@@ -33,7 +33,7 @@ Ext.define('PVE.form.MemoryField', {
        for (j = 0; j < 9; j++) {
            for (i = 0; i < 32; i++) {
                if ((value >= current_size) && (value < (current_size + dimm_size))) {
-                   value_start = current_size,
+                   value_start = current_size;
                    value_up = current_size + dimm_size;
                    value_down = current_size - ((i === 0) ? prev_dimm_size : dimm_size);
                }
index 4cc1e7a3df8502c49bb2a80ff6d53d18b87591b9..887d0141b8b60d172087b35d39e57e7d71730156 100644 (file)
@@ -274,7 +274,7 @@ Ext.define('PVE.FirewallRuleEdit', {
                        field.setValue(1);
                        Ext.Function.defer(function() {
                            var form = ipanel.up('form').getForm();
-                           form.markInvalid(values.errors)
+                           form.markInvalid(values.errors);
                        }, 100);
                    }
                }
index 919e888fd0e50943c52913ec8634aaa9563a5499..a650677244579849ee2792ebc42394e07604f6de 100644 (file)
@@ -116,7 +116,9 @@ Ext.define('PVE.ha.VMResourceEdit', {
                    var regex =  /^(\S+):(\S+)$/;
                    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];
                    
index 24552e1a9615360ef272531c8c57de17469cd4a6..4c68c9f13f6c41025f0319761d0c76e11a009125 100644 (file)
@@ -46,7 +46,9 @@ Ext.define('PVE.ha.ResourcesView', {
            var regex =  /^(\S+):(\S+)$/;
            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];
            
index ec5d50e16efe5a8142b153c669ce85c96874f37a..c6dcc2e4b06e8188760238682a85e9d0d3732ed0 100644 (file)
@@ -29,10 +29,10 @@ Ext.define('PVE.node.Subscription', {
        var me = this;
        var nodename = me.pveSelNode.data.node;
 
-       var getReportFileName= function() {
+       var getReportFileName = function() {
            var now = Ext.Date.format(new Date(), 'D-d-F-Y-G-i');
            return me.nodename + '-report-'  + now + '.txt';
-       }
+       };
 
        var view = Ext.createWidget('component', {
            itemId: 'system-report-view',
index b64c70cad5849af92cf7a713fadce30fc6bf14cd..8ac99b60cc4495f57e5fb403c16f108c90e77245 100644 (file)
@@ -108,7 +108,7 @@ Ext.define('PVE.qemu.ProcessorEdit', {
     initComponent : function() {
        var me = this;
        
-       var ipanel = Ext.create('PVE.qemu.ProcessorInputPanel')
+       var ipanel = Ext.create('PVE.qemu.ProcessorInputPanel');
 
        Ext.apply(me, {
            subject: gettext('Processors'),