]> git.proxmox.com Git - pve-manager.git/commitdiff
fix wizard validity logic
authorDominik Csapak <d.csapak@proxmox.com>
Fri, 22 Apr 2016 08:00:46 +0000 (10:00 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 22 Apr 2016 08:29:41 +0000 (10:29 +0200)
we always checked the validity of the panels of the wizard,
when the event validitychange of a subelement triggered,
sadly this does not always happen

for example:

when switching back and forth between 'cdrom' and iso
while having no valid iso selected, the validitchange does not
trigger for the combogrids

instead we listen to the 'change' event, then the check will
be executed at the right time

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

index d2d5aaee8a6f49b4dcd7beb8ce5d7ca1ece9405c..d6e22c1bc60ffef2fdad72dcfc7caea5f9e51a2e 100644 (file)
@@ -222,7 +222,7 @@ Ext.define('PVE.window.Wizard', {
        display_header(tabs[0]);
 
        Ext.Array.each(me.query('field'), function(field) {
-           field.on('validitychange', function(f) {
+           field.on('change', function(f) {
                var tp = me.down('#wizcontent');
                var atab = tp.getActiveTab();
                var valid = check_card(atab);