[pve-devel] r6393 - pve-manager/pve2/www/manager/storage

svn-commits at proxmox.com svn-commits at proxmox.com
Tue Aug 2 07:51:35 CEST 2011


Author: dietmar
Date: 2011-08-02 07:51:35 +0200 (Tue, 02 Aug 2011)
New Revision: 6393

Modified:
   pve-manager/pve2/www/manager/storage/LVMEdit.js
Log:
make lint happy


Modified: pve-manager/pve2/www/manager/storage/LVMEdit.js
===================================================================
--- pve-manager/pve2/www/manager/storage/LVMEdit.js	2011-08-02 05:44:29 UTC (rev 6392)
+++ pve-manager/pve2/www/manager/storage/LVMEdit.js	2011-08-02 05:51:35 UTC (rev 6393)
@@ -10,7 +10,7 @@
 	}
 
 	var store = Ext.create('Ext.data.Store', {
-	    autoLoad: true,
+	    autoLoad: {}, // true,
 	    fields: [ 'vg', 'size', 'free' ],
 	    proxy: {
 		type: 'pve',
@@ -25,7 +25,7 @@
 	    queryMode: 'local',
 	    editable: false,
 	    listConfig: {
-		loadingText: 'Scanning...',
+		loadingText: 'Scanning...'
 	    }
 	});
 
@@ -60,7 +60,7 @@
 		      }],
 	    proxy: {
 		type: 'pve',
-		url: '/api2/json/storage/',
+		url: '/api2/json/storage/'
 	    }
 	});
 
@@ -109,7 +109,7 @@
 		value: me.storageId || '',
 		fieldLabel: 'Storage ID',
 		vtype: 'StorageId',
-		submitValue: me.create,
+		submitValue: !!me.create,
 		allowBlank: false
 	    }
 	];
@@ -117,8 +117,8 @@
 	var vgnameField = Ext.createWidget(me.create ? 'textfield' : 'displayfield', {
 	    height: 22, // hack: set same height as text fields
 	    name: 'vgname',
-	    hidden: me.create,
-	    disabled: me.create,
+	    hidden: !!me.create,
+	    disabled: !!me.create,
 	    value: '',
 	    fieldLabel: 'VG name',
 	    allowBlank: false



More information about the pve-devel mailing list