]> git.proxmox.com Git - pve-manager.git/blobdiff - www/manager6/qemu/OSTypeEdit.js
ui: eslint: fix various spacing related issues
[pve-manager.git] / www / manager6 / qemu / OSTypeEdit.js
index d43d2aad09b71e710f0db0b84436550c63baa06a..ece80c39f34dfcc8768b81eccf885ffedeec4e5a 100644 (file)
@@ -8,12 +8,12 @@ Ext.define('PVE.qemu.OSTypeInputPanel', {
        xclass: 'Ext.app.ViewController',
        control: {
            'combobox[name=osbase]': {
-               change: 'onOSBaseChange'
+               change: 'onOSBaseChange',
            },
            'combobox[name=ostype]': {
                afterrender: 'onOSTypeChange',
-               change: 'onOSTypeChange'
-           }
+               change: 'onOSTypeChange',
+           },
        },
        onOSBaseChange: function(field, value) {
            this.lookup('ostype').getStore().setData(PVE.Utils.kvm_ostypes[value]);
@@ -39,18 +39,17 @@ Ext.define('PVE.qemu.OSTypeInputPanel', {
            } else {
                throw 'non unique widget :' + widget + ' in Wizard';
            }
-       }
+       },
     },
 
-    initComponent : function() {
+    initComponent: function() {
        var me = this;
 
-       /*jslint confusion: true */
        me.items = [
            {
                xtype: 'displayfield',
                value: gettext('Guest OS') + ':',
-               hidden: !me.insideWizard
+               hidden: !me.insideWizard,
            },
            {
                xtype: 'combobox',
@@ -60,7 +59,7 @@ Ext.define('PVE.qemu.OSTypeInputPanel', {
                editable: false,
                queryMode: 'local',
                value: 'Linux',
-               store: Object.keys(PVE.Utils.kvm_ostypes)
+               store: Object.keys(PVE.Utils.kvm_ostypes),
            },
            {
                xtype: 'combobox',
@@ -68,7 +67,7 @@ Ext.define('PVE.qemu.OSTypeInputPanel', {
                reference: 'ostype',
                fieldLabel: gettext('Version'),
                value: 'l26',
-               allowBlank : false,
+               allowBlank: false,
                editable: false,
                queryMode: 'local',
                valueField: 'val',
@@ -77,7 +76,7 @@ Ext.define('PVE.qemu.OSTypeInputPanel', {
                    fields: ['desc', 'val'],
                    data: PVE.Utils.kvm_ostypes.Linux,
                    listeners: {
-                       datachanged: function (store) {
+                       datachanged: function(store) {
                            var ostype = me.lookup('ostype');
                            var old_val = ostype.getValue();
                            if (!me.insideWizard && old_val && store.find('val', old_val) != -1) {
@@ -85,15 +84,14 @@ Ext.define('PVE.qemu.OSTypeInputPanel', {
                            } else {
                                ostype.setValue(store.getAt(0));
                            }
-                       }
-                   }
-               }
-           }
+                       },
+                   },
+               },
+           },
        ];
-       /*jslint confusion: false */
 
        me.callParent();
-    }
+    },
 });
 
 Ext.define('PVE.qemu.OSTypeEdit', {
@@ -103,7 +101,7 @@ Ext.define('PVE.qemu.OSTypeEdit', {
 
     items: [{ xtype: 'pveQemuOSTypePanel' }],
 
-    initComponent : function() {
+    initComponent: function() {
        var me = this;
 
        me.callParent();
@@ -113,7 +111,7 @@ Ext.define('PVE.qemu.OSTypeEdit', {
                var value = response.result.data.ostype || 'other';
                var osinfo = PVE.Utils.get_kvm_osinfo(value);
                me.setValues({ ostype: value, osbase: osinfo.base });
-           }
+           },
        });
-    }
+    },
 });