]> git.proxmox.com Git - pve-manager.git/commit - www/manager6/form/NodeSelector.js
ext6migrate: fix NodeSelector
authorDominik Csapak <d.csapak@proxmox.com>
Tue, 8 Mar 2016 10:03:55 +0000 (11:03 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 8 Mar 2016 10:25:57 +0000 (11:25 +0100)
commitfbf6e7b4122e068f9eed459c1d51eef8495936f2
treea2a73c62c6f3a34a560af111f3c7b19f7ae26d0d
parentb4ea8af6ccd4641f7de4a2863b53fbf9ddf84a35
ext6migrate: fix NodeSelector

the intial value of the node selector is null,
but when the store is loaded, it becomes an empty array

this triggers the 'dirtychanged' event and causes
the edit windows to enable the OK/Submit Button,
even when no change is made

this fix sets the default value to an empty array,
which fixes the mentioned behaviour

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