]> git.proxmox.com Git - pve-manager.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)
commit8cd96756d338b0c00f01f15b413e794d557b870b
treeb6826c026c9c43245682b07ba095f3dd068d9410
parentb6450910cea2469fc9d5af817cffea38aba6b070
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