From d1f82e421363f8636c45bb54d691d7a03a54678a Mon Sep 17 00:00:00 2001 From: Kevin Pouget Date: Thu, 7 Mar 2013 16:58:04 +0100 Subject: [PATCH] Properly filter on class 'wizard-ignore' when disabling inputs in 'update_states' and 'reset' methods. --- js/jquery.form.wizard.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/jquery.form.wizard.js b/js/jquery.form.wizard.js index 38a36dc..d0cb98c 100644 --- a/js/jquery.form.wizard.js +++ b/js/jquery.form.wizard.js @@ -347,7 +347,7 @@ this.element.resetForm() $("label,:input,textarea",this).removeClass("error"); for(var i = 0; i < this.activatedSteps.length; i++){ - this.steps.filter("#" + this.activatedSteps[i]).hide().find(":input").attr("disabled","disabled"); + this.steps.filter("#" + this.activatedSteps[i]).hide().find(":input:not('.wizard-ignore')").attr("disabled","disabled"); } this.activatedSteps = new Array(); this.previousStep = undefined; @@ -427,7 +427,7 @@ update_steps : function(){ this.steps = this.element.find(".step").addClass("ui-formwizard-content"); this.firstStep = this.steps.eq(0).attr("id"); - this.steps.not("#" + this.currentStep).hide().find(":input").addClass("ui-wizard-content").attr("disabled","disabled"); + this.steps.not("#" + this.currentStep).hide().find(":input:not('.wizard-ignore')").addClass("ui-wizard-content").attr("disabled","disabled"); this._checkIflastStep(this.currentStep); this._enableNavigation(); if(!this.options.disableUIStyles){