[pve-devel] [PATCH manager 3/4] fix wizard validity logic

Dominik Csapak d.csapak at proxmox.com
Fri Apr 22 10:00:46 CEST 2016


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 at proxmox.com>
---
 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 d2d5aae..d6e22c1 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);
-- 
2.1.4





More information about the pve-devel mailing list