[pve-devel] [PATCH manager] Add context menu to global search entries
Christian Ebner
c.ebner at proxmox.com
Mon Jan 28 11:19:00 CET 2019
This add a context menu to the entries of the global search field instead of
showing the browsers default one.
This allows to search and easily manage nodes, VMs and CTs similar to the
behaviour in the resource tree.
Signed-off-by: Christian Ebner <c.ebner at proxmox.com>
---
www/manager6/form/GlobalSearchField.js | 1 +
1 file changed, 1 insertion(+)
diff --git a/www/manager6/form/GlobalSearchField.js b/www/manager6/form/GlobalSearchField.js
index cac33f78..2cf2d126 100644
--- a/www/manager6/form/GlobalSearchField.js
+++ b/www/manager6/form/GlobalSearchField.js
@@ -61,6 +61,7 @@ Ext.define('PVE.form.GlobalSearchField', {
var me = this;
me.textfield.selectAndHide(record.id);
},
+ itemcontextmenu: PVE.Utils.createCmdMenu,
/* because of lint */
focusleave: {
fn: 'hideMe'
--
2.11.0
More information about the pve-devel
mailing list