[pve-devel] [PATCH manager 3/3] HDEdit: push more items in the same call

Thomas Lamprecht t.lamprecht at proxmox.com
Wed Aug 23 09:41:02 CEST 2017


Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
---
 www/manager6/qemu/HDEdit.js | 20 ++++++++------------
 1 file changed, 8 insertions(+), 12 deletions(-)

diff --git a/www/manager6/qemu/HDEdit.js b/www/manager6/qemu/HDEdit.js
index c97f530c..09fd1a0b 100644
--- a/www/manager6/qemu/HDEdit.js
+++ b/www/manager6/qemu/HDEdit.js
@@ -254,28 +254,24 @@ Ext.define('PVE.qemu.HDInputPanel', {
 	    name: 'cache',
 	    value: '__default__',
 	    fieldLabel: gettext('Cache')
-	});
-
-	me.column2.push({
+	},
+	{
 	    xtype: 'pvecheckbox',
 	    fieldLabel: gettext('No backup'),
 	    name: 'nobackup'
-	});
-
-	me.column2.push({
+	},
+	{
 	    xtype: 'pvecheckbox',
 	    hidden: me.insideWizard,
 	    fieldLabel: gettext('Skip replication'),
 	    name: 'noreplicate'
-	});
-
-	me.column2.push({
+	},
+	{
 	    xtype: 'pvecheckbox',
 	    fieldLabel: gettext('Discard'),
 	    name: 'discard'
-	});
-
-	me.column2.push({
+	},
+	{
 	    xtype: 'pvecheckbox',
 	    disabled: me.insideWizard || (me.confid && !me.confid.match(/^(virtio|scsi)/)),
 	    fieldLabel: gettext('IO thread'),
-- 
2.11.0





More information about the pve-devel mailing list