[pve-devel] r5823 - pve-manager/pve2/www/new/grid
svn-commits at proxmox.com
svn-commits at proxmox.com
Tue Apr 19 10:47:34 CEST 2011
Author: dietmar
Date: 2011-04-19 10:47:34 +0200 (Tue, 19 Apr 2011)
New Revision: 5823
Modified:
pve-manager/pve2/www/new/grid/ResourceGrid.js
Log:
include selected node
Modified: pve-manager/pve2/www/new/grid/ResourceGrid.js
===================================================================
--- pve-manager/pve2/www/new/grid/ResourceGrid.js 2011-04-19 08:37:28 UTC (rev 5822)
+++ pve-manager/pve2/www/new/grid/ResourceGrid.js 2011-04-19 08:47:34 UTC (rev 5823)
@@ -71,15 +71,14 @@
len = cs.length,
i = 0, n, res;
+ var orgnode = rstore.data.get(cn.data.id);
+ if (orgnode) {
+ if (!textfilter || textfilter_match(cn))
+ nodeidx[cn.data.id] = orgnode;
+ }
+
for (; i < len; i++) {
- n = cs[i];
-
- var orgnode = rstore.data.get(n.data.id);
- if (orgnode) {
- if (!textfilter || textfilter_match(n))
- nodeidx[n.data.id] = rstore.data.get(n.data.id);
- }
- gather_child_nodes(n);
+ gather_child_nodes(cs[i]);
}
};
gather_child_nodes(me.pveSelNode);
More information about the pve-devel
mailing list