[pve-devel] r5837 - in pve-manager/pve2/www/new: . grid

svn-commits at proxmox.com svn-commits at proxmox.com
Wed Apr 20 12:09:25 CEST 2011


Author: dietmar
Date: 2011-04-20 12:09:25 +0200 (Wed, 20 Apr 2011)
New Revision: 5837

Modified:
   pve-manager/pve2/www/new/StateProvider.js
   pve-manager/pve2/www/new/Workspace.js
   pve-manager/pve2/www/new/grid/ResourceGrid.js
Log:
better defaults


Modified: pve-manager/pve2/www/new/StateProvider.js
===================================================================
--- pve-manager/pve2/www/new/StateProvider.js	2011-04-20 09:42:23 UTC (rev 5836)
+++ pve-manager/pve2/www/new/StateProvider.js	2011-04-20 10:09:25 UTC (rev 5837)
@@ -52,7 +52,7 @@
 	    view: 'server',
 	    ltab: 'clog',
 	    ctab: 'search',
-	    rid: ''
+	    rid: 'root'
 	};
 
 	Ext.Array.each(list, function(name) {

Modified: pve-manager/pve2/www/new/Workspace.js
===================================================================
--- pve-manager/pve2/www/new/Workspace.js	2011-04-20 09:42:23 UTC (rev 5836)
+++ pve-manager/pve2/www/new/Workspace.js	2011-04-20 10:09:25 UTC (rev 5837)
@@ -179,7 +179,7 @@
 
 		    stateful: false,
 		    margins:'0 5 0 0',
-		    items: self.defaultView
+		    items: self.defaultContent
 		},
 		rtree,
 		{

Modified: pve-manager/pve2/www/new/grid/ResourceGrid.js
===================================================================
--- pve-manager/pve2/www/new/grid/ResourceGrid.js	2011-04-20 09:42:23 UTC (rev 5836)
+++ pve-manager/pve2/www/new/grid/ResourceGrid.js	2011-04-20 10:09:25 UTC (rev 5837)
@@ -37,7 +37,12 @@
 
 	var store = Ext.create('Ext.data.Store', {
  	    model: 'PVEResources',
-	    groupField: 'type',
+	    sorters: [
+		{
+		    property : 'type',
+		    direction: 'ASC'
+		}
+	    ],
 	    proxy: { type: 'memory' }
 	});
 




More information about the pve-devel mailing list