]> git.proxmox.com Git - pve-manager.git/commit - www/manager6/window/Wizard.js
fix #1317: check wizard form also on validitychange
authorDominik Csapak <d.csapak@proxmox.com>
Fri, 24 Mar 2017 13:19:11 +0000 (14:19 +0100)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Mon, 27 Mar 2017 06:33:50 +0000 (08:33 +0200)
commita1304e1e5eedcc3105fa5b1b79315bd17b3b23ac
tree804a2088b3743e9b9a628935c066e98911ecb8a6
parent23b54109a4a0a30d458efc6976a079789d7ecf26
fix #1317: check wizard form also on validitychange

with the commit
    40342aa6c4278497b9ec8c9cce8739f9b29c2e8f
we introduced a validator on the guestidselector, but did not
notice that the wizard checks the validity on the field change event,
but the selector gets valid/invalid in an api callback(so a little later)

with this patch, we now validate the field correctly with validate()
and also listen on the validitychange event to catch it

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