[pve-devel] r5789 - in pve-manager/pve2/www/new: . tree

svn-commits at proxmox.com svn-commits at proxmox.com
Tue Apr 5 14:21:48 CEST 2011


Author: dietmar
Date: 2011-04-05 14:21:48 +0200 (Tue, 05 Apr 2011)
New Revision: 5789

Modified:
   pve-manager/pve2/www/new/Workspace.js
   pve-manager/pve2/www/new/tree/ResourceTree.js
Log:
impl. selection model


Modified: pve-manager/pve2/www/new/Workspace.js
===================================================================
--- pve-manager/pve2/www/new/Workspace.js	2011-04-05 11:28:39 UTC (rev 5788)
+++ pve-manager/pve2/www/new/Workspace.js	2011-04-05 12:21:48 UTC (rev 5789)
@@ -127,7 +127,23 @@
 		    width: 200,
 		    region: 'west',
 		    margins: '0 0 0 5',
-		    split: true
+		    split: true,
+		    selModel: new Ext.tree.SelectionModel({
+			listeners: {
+			    select: function(sm, n) {		    
+				var comp = { 
+				    xtype: 'panel',
+				    layout: 'fit',
+				    html: "TEST",
+				    border: false,
+				    title: "NODE ID " + n.data.id,
+				    pveSelNode: n 
+				};
+
+				self.setView(comp);
+			    }
+			}
+		    })
 		},
 		{
 		    //xtype: 'pveStatusPanel',

Modified: pve-manager/pve2/www/new/tree/ResourceTree.js
===================================================================
--- pve-manager/pve2/www/new/tree/ResourceTree.js	2011-04-05 11:28:39 UTC (rev 5788)
+++ pve-manager/pve2/www/new/tree/ResourceTree.js	2011-04-05 12:21:48 UTC (rev 5789)
@@ -275,7 +275,6 @@
 		    rstore.un("load", updateTree)
 		}
 	    },
-
 	    setView: function(view) {
 		var self = this;
 	



More information about the pve-devel mailing list