this gives the focus to either the 'path' field
or to the 'X' tool (if it is a rootfs)

Signed-off-by: Dominik Csapak <d.csa...@proxmox.com>
---
 www/manager6/lxc/MPEdit.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/www/manager6/lxc/MPEdit.js b/www/manager6/lxc/MPEdit.js
index 37f725ea..cf8d6f02 100644
--- a/www/manager6/lxc/MPEdit.js
+++ b/www/manager6/lxc/MPEdit.js
@@ -324,6 +324,7 @@ Ext.define('PVE.lxc.MountPointEdit', {
 
        Ext.apply(me, {
            subject: subject,
+           defaultFocus: me.confid !== 'rootfs' ? 'textfield[name=mp]' : 
'tool',
            items: ipanel
        });
 
-- 
2.11.0


_______________________________________________
pve-devel mailing list
pve-devel@pve.proxmox.com
https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to