[pve-devel] r5921 - in pve-manager/pve2/www/new: form qemu

svn-commits at proxmox.com svn-commits at proxmox.com
Fri May 6 13:48:23 CEST 2011


Author: dietmar
Date: 2011-05-06 13:48:23 +0200 (Fri, 06 May 2011)
New Revision: 5921

Modified:
   pve-manager/pve2/www/new/form/StorageSelector.js
   pve-manager/pve2/www/new/qemu/CreateWizard.js
Log:
only list relevant storage


Modified: pve-manager/pve2/www/new/form/StorageSelector.js
===================================================================
--- pve-manager/pve2/www/new/form/StorageSelector.js	2011-05-06 11:44:36 UTC (rev 5920)
+++ pve-manager/pve2/www/new/form/StorageSelector.js	2011-05-06 11:48:23 UTC (rev 5921)
@@ -14,9 +14,13 @@
 
 	me.nodename = nodename;
 
+	var url = '/api2/json/nodes/' + me.nodename + '/storage';
+	if (me.storageContent)
+	    url += '?content=' + me.storageContent;
+
 	me.store.setProxy({
 	    type: 'pve',
-	    url: '/api2/json/nodes/' + nodename + '/storage'
+	    url: url
 	});
 
 	me.store.load();

Modified: pve-manager/pve2/www/new/qemu/CreateWizard.js
===================================================================
--- pve-manager/pve2/www/new/qemu/CreateWizard.js	2011-05-06 11:44:36 UTC (rev 5920)
+++ pve-manager/pve2/www/new/qemu/CreateWizard.js	2011-05-06 11:48:23 UTC (rev 5921)
@@ -21,6 +21,7 @@
 	var cdstoragesel = Ext.create('PVE.form.StorageSelector', {
 	    name: 'cdstorage',
 	    fieldLabel: 'Storage',
+	    storageContent: 'iso',
 	    labelAlign: 'right',
 	    allowBlank: false,
 	    listeners: {
@@ -33,6 +34,7 @@
 	var hdstoragesel = Ext.create('PVE.form.StorageSelector', {
 	    name: 'hdstorage',
 	    fieldLabel: 'Storage',
+	    storageContent: 'images',
 	    allowBlank: false
 	});
 




More information about the pve-devel mailing list