[pve-devel] [PATCH manager 2/4] set focus on tree after selecting a node
Dominik Csapak
d.csapak at proxmox.com
Tue Jun 21 16:20:18 CEST 2016
this is useful when using the new search field,
or when double clicking in the search tab,
since it focuses the item in the tree and lets
the treepanel scroll to the item
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
www/manager6/tree/ResourceTree.js | 1 +
1 file changed, 1 insertion(+)
diff --git a/www/manager6/tree/ResourceTree.js b/www/manager6/tree/ResourceTree.js
index 5244b7c..ee3dd44 100644
--- a/www/manager6/tree/ResourceTree.js
+++ b/www/manager6/tree/ResourceTree.js
@@ -412,6 +412,7 @@ Ext.define('PVE.tree.ResourceTree', {
cn.expand();
}
}
+ me.getView().focusRow(node);
}
},
selectById: function(nodeid) {
--
2.1.4
More information about the pve-devel
mailing list