]> git.proxmox.com Git - pve-manager.git/commitdiff
set focus on tree after selecting a node
authorDominik Csapak <d.csapak@proxmox.com>
Tue, 21 Jun 2016 14:20:18 +0000 (16:20 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 29 Jun 2016 12:32:36 +0000 (14:32 +0200)
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@proxmox.com>
www/manager6/tree/ResourceTree.js

index 5244b7c496811351628651595750f0a60e3d1968..ee3dd44df68c8c58757535d088e13364ca490cce 100644 (file)
@@ -412,6 +412,7 @@ Ext.define('PVE.tree.ResourceTree', {
                            cn.expand();
                        }
                    }
+                   me.getView().focusRow(node);
                }
            },
            selectById: function(nodeid) {