]> git.proxmox.com Git - pve-manager-legacy.git/commit
BackupEdit, cleanup: remove insideUpdate construct
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 5 Oct 2016 09:34:17 +0000 (11:34 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Thu, 10 Nov 2016 08:56:05 +0000 (09:56 +0100)
commit2ed889126e6822a7a62c5ecb234d50c35e53708f
treeb7f48c1d98d9d162abfc72a55f4d37d9baef7be4
parentda356293f732d259da633e85011d10d1234d44e7
BackupEdit, cleanup: remove insideUpdate construct

insideUpdate protects for a endless loop which gets caused if the sm
selection change callback updates vmidField which then triggers the
vmidField change callback which updates the selection model again,
and the circle starts again.

As this construct is rather confusing when looking first at the code
replace it with a temporary suspend of the change event during the
vmidField update.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
www/manager6/dc/Backup.js