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

svn-commits at proxmox.com svn-commits at proxmox.com
Wed Jul 14 14:33:41 CEST 2010


Author: dietmar
Date: 2010-07-14 12:33:41 +0000 (Wed, 14 Jul 2010)
New Revision: 4900

Modified:
   pve-manager/pve2/www/manager/StorageBrowser.js
   pve-manager/pve2/www/manager/form/StdForm.js
Log:
cleanups


Modified: pve-manager/pve2/www/manager/StorageBrowser.js
===================================================================
--- pve-manager/pve2/www/manager/StorageBrowser.js	2010-07-14 12:07:56 UTC (rev 4899)
+++ pve-manager/pve2/www/manager/StorageBrowser.js	2010-07-14 12:33:41 UTC (rev 4900)
@@ -1,5 +1,25 @@
 Ext.ns("PVE");
 
+PVE.StorageStatus = Ext.extend(Ext.Panel, {
+
+    initComponent : function() {
+	var self = this;
+
+	Ext.apply(self, {
+	    layout: 'fit',
+	    tbar: [ 
+		"<b>Status", '->',
+		{ 
+		    text: "Refresh"
+		}
+	    ],
+	    html: "data2345"
+	});
+
+	PVE.StorageStatus.superclass.initComponent.call(self);
+    }
+});
+
 PVE.StorageSummary = Ext.extend(Ext.Panel, {
 
     initComponent : function() {
@@ -70,16 +90,9 @@
 		    ]
 		    //flex: 1,
 		},
-		{
-		    width: 300,
-		    tbar: [ 
-			"<b>Status", '->',
-			{ 
-			    text: "Refresh"
-			}
-		    ],
-		    html: "data2"
-		}
+		new PVE.StorageStatus ({
+		    width: 300
+		})
 	    ]
 	});
 

Modified: pve-manager/pve2/www/manager/form/StdForm.js
===================================================================
--- pve-manager/pve2/www/manager/form/StdForm.js	2010-07-14 12:07:56 UTC (rev 4899)
+++ pve-manager/pve2/www/manager/form/StdForm.js	2010-07-14 12:33:41 UTC (rev 4900)
@@ -8,7 +8,7 @@
 	// NOTE: If subclassing FormPanel, any configuration options for 
 	// the BasicForm must be applied to initialConfig
 	Ext.apply(self, Ext.apply(self.initialConfig, {
-	    bodyStyle: 'padding:5px',
+	    bodyStyle: 'padding:10px',
 	    autoScroll: true,
 
  	    submitHandler: function(options) {




More information about the pve-devel mailing list