]> git.proxmox.com Git - pve-manager.git/commit
fix combobox reset behaviour
authorDominik Csapak <d.csapak@proxmox.com>
Mon, 2 May 2016 13:43:56 +0000 (15:43 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 3 May 2016 04:06:58 +0000 (06:06 +0200)
commit05694e6d3aff5dc528a54e6e1bcbeed1b27be2af
tree69fb7ef4ddefb7168dc8e7d646f1913fce481b2a
parentabc55fa61dedcc2171b1fe23e3f6a2c2e8e7d5a6
fix combobox reset behaviour

on comboboxes/combogrids with multiselect,
if you deselect an item (but not the last),
the order of the selected items after resetting is
not the same as the original order

because of this, the reset button is still enabled

this happens, because extjs only adds the missing
values instead of overwriting the whole array

with this fix, we overwrite the reset function of
the comboboxes and only if the values do not match
(after a reset) do we clear and set the value again

so we only change the behaviour when it is necessary

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
www/manager6/Toolkit.js