]> git.proxmox.com Git - proxmox-widget-toolkit.git/commitdiff
code style: text-width, indentation improvements
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 18 Oct 2021 05:06:53 +0000 (07:06 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 18 Oct 2021 05:06:59 +0000 (07:06 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/panel/InputPanel.js
src/window/Edit.js

index a9c7263aec4f15a05c6e7f9ac657f40d512985b5..85a13bdffa8f5d352820b773bc8b7adf56994856 100644 (file)
@@ -23,8 +23,7 @@ Ext.define('Proxmox.panel.InputPanel', {
     // will be set if the inputpanel has advanced items
     hasAdvanced: false,
 
-    // if the panel has advanced items,
-    // this will determine if they are shown by default
+    // if the panel has advanced items, this will determine if they are shown by default
     showAdvanced: false,
 
     // overwrite this to modify submit data
index 53d0e73abf8d7479bdbb090fffa94538a03c8764..afbffaa2b6f1c9606b050bd6df28eee65ad19b9a 100644 (file)
@@ -322,8 +322,7 @@ Ext.define('Proxmox.window.Edit', {
            resetBtn.setDisabled(!dirty);
 
            if (inputPanel && inputPanel.hasAdvanced) {
-               // we want to show the advanced options
-               // as soon as some of it is not valid
+               // we want to show the advanced options as soon as some of it is not valid
                let advancedItems = me.down('#advancedContainer').query('field');
                let allAdvancedValid = true;
                advancedItems.forEach(function(field) {
@@ -362,22 +361,20 @@ Ext.define('Proxmox.window.Edit', {
            let sp = Ext.state.Manager.getProvider();
            let advchecked = sp.get('proxmox-advanced-cb');
            inputPanel.setAdvancedVisible(advchecked);
-           me.buttons.unshift(
-              {
-                  xtype: 'proxmoxcheckbox',
-                  itemId: 'advancedcb',
-                  boxLabelAlign: 'before',
-                  boxLabel: gettext('Advanced'),
-                  stateId: 'proxmox-advanced-cb',
-                  value: advchecked,
-                  listeners: {
-                      change: function(cb, val) {
-                          inputPanel.setAdvancedVisible(val);
-                          sp.set('proxmox-advanced-cb', val);
-                      },
-                  },
-              },
-           );
+           me.buttons.unshift({
+               xtype: 'proxmoxcheckbox',
+               itemId: 'advancedcb',
+               boxLabelAlign: 'before',
+               boxLabel: gettext('Advanced'),
+               stateId: 'proxmox-advanced-cb',
+               value: advchecked,
+               listeners: {
+                   change: function(cb, val) {
+                       inputPanel.setAdvancedVisible(val);
+                       sp.set('proxmox-advanced-cb', val);
+                   },
+               },
+           });
        }
 
        let onlineHelp = me.onlineHelp;