[pve-devel] r5511 - in pve-manager/pve2/www/manager: . form

svn-commits at proxmox.com svn-commits at proxmox.com
Fri Feb 11 11:07:14 CET 2011


Author: dietmar
Date: 2011-02-11 11:07:14 +0100 (Fri, 11 Feb 2011)
New Revision: 5511

Modified:
   pve-manager/pve2/www/manager/StorageBrowser.js
   pve-manager/pve2/www/manager/form/ModifyDirStorage.js
Log:
use single column layout


Modified: pve-manager/pve2/www/manager/StorageBrowser.js
===================================================================
--- pve-manager/pve2/www/manager/StorageBrowser.js	2011-02-11 09:54:22 UTC (rev 5510)
+++ pve-manager/pve2/www/manager/StorageBrowser.js	2011-02-11 10:07:14 UTC (rev 5511)
@@ -179,7 +179,7 @@
 				var win = new PVE.window.ModalDialog({
 				    title: "Modify Directory Storage",
 				    items: form,
-				    width: 800,
+				    width: 400,
 				    height: 300,
 				    buttons: [
 					{

Modified: pve-manager/pve2/www/manager/form/ModifyDirStorage.js
===================================================================
--- pve-manager/pve2/www/manager/form/ModifyDirStorage.js	2011-02-11 09:54:22 UTC (rev 5510)
+++ pve-manager/pve2/www/manager/form/ModifyDirStorage.js	2011-02-11 10:07:14 UTC (rev 5511)
@@ -7,7 +7,16 @@
 
 	var storeid = self.confdata.storage;
 
-	var items_col1 = [
+	var cts = [['images', 'Images']];
+
+	if (storeid === 'local') {
+	    cts.push(['vztmpl', 'OpenVZ Templates']);
+	    cts.push(['iso', 'ISO']);
+	} else {
+	    cts.push(['backup', 'Backup']);
+	} 
+
+	var items = [
 	    {
 		xtype: 'hidden',
 		name: 'digest'
@@ -24,19 +33,7 @@
 		fieldLabel: 'Directory',
 		name: 'path',
 		disabled: true
-	    }
-	];
-
-	var cts = [['images', 'Images']];
-
-	if (storeid === 'local') {
-	    cts.push(['vztmpl', 'OpenVZ Templates']);
-	    cts.push(['iso', 'ISO']);
-	} else {
-	    cts.push(['backup', 'Backup']);
-	} 
-
-	var items_col2 = [
+	    },
 	    {
 		xtype: 'checkbox',
 		fieldLabel: 'Disabled',
@@ -70,26 +67,11 @@
 	Ext.apply(self, Ext.apply(self.initialConfig, {
 	    url: "/api2/extjs/storage/" + storeid,
 	    method: 'PUT',
-
 	    items: {
-		layout:'column',
+		layout: 'form',
+ 		defaults: { anchor: '-20' },
 		border: false,
-		defaults: {
-		    columnWidth: '.5',
-		    border: false
-		},            
-		items: [
-		    {
-			layout: 'form',
- 			defaults: { anchor: '-20' },
- 			items: items_col1
-		    },
-		    {
-			layout: 'form',
-			defaults: { anchor: '100%' },
- 			items: items_col2
-		    }
-		]
+ 		items: items
 	    }
 	}));
 




More information about the pve-devel mailing list