]> git.proxmox.com Git - pve-manager-legacy.git/commit
fix edit button for some panels
authorDominik Csapak <d.csapak@proxmox.com>
Wed, 7 Feb 2018 09:11:22 +0000 (10:11 +0100)
committerDominik Csapak <d.csapak@proxmox.com>
Wed, 7 Feb 2018 09:39:57 +0000 (10:39 +0100)
commit714cd6560aa988dc976187ce221c9ddcd28742ff
tree76ca492416800ad60d8effb1adb17dfb429a9d0c
parentc58b62e9140ea8e57c97db08a46fab66c780e73f
fix edit button for some panels

when using the 'run_editor' function provided by the ObjectGrid,
we have to make sure the function runs in the context of the grid,
not in that of the button, else we cannot access the
selectionModel/rows/etc. of the grid

this happened with the switch to the widget toolkit

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Tested-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
www/manager6/grid/FirewallOptions.js
www/manager6/lxc/Options.js
www/manager6/lxc/Resources.js
www/manager6/qemu/Options.js