From dd8988e8a05f4d573ce3fa465b5418e077dd97ed Mon Sep 17 00:00:00 2001 From: Dominik Csapak Date: Fri, 22 Apr 2016 10:00:46 +0200 Subject: [PATCH] fix wizard validity logic 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 --- www/manager6/window/Wizard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/manager6/window/Wizard.js b/www/manager6/window/Wizard.js index d2d5aaee..d6e22c1b 100644 --- a/www/manager6/window/Wizard.js +++ b/www/manager6/window/Wizard.js @@ -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);