Skip to content
This repository was archived by the owner on Jun 24, 2023. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions src/bootstrap-wizard.js
Original file line number Diff line number Diff line change
Expand Up @@ -886,6 +886,8 @@
this.updateProgressBar(this.percentComplete);
}

this.showButtons();

return newCard;
}
else {
Expand Down Expand Up @@ -921,6 +923,12 @@
return this;
},

unlockCards: function() {
this.log("unlocking nav cards");
this.eachCard(function(i,card){card.markVisited();});
return this;
},

disableCards: function() {
this.log("disabling all nav cards");
this.eachCard(function(i,card){card.disable();});
Expand Down Expand Up @@ -1089,13 +1097,27 @@
this._submitting = false;
this.showSubmitCard("failure");
this.trigger("submitFailure");

// Unlock the cards, and reset the buttons, to allow the user to retry
this.unlockCards();
this.nextButton.hide();
this.enableNextButton();
this._readyToSubmit = true;
this.trigger("readySubmit");
},

submitError: function() {
this.log("submit error");
this._submitting = false;
this.showSubmitCard("error");
this.trigger("submitError");

// Unlock the cards, and reset the buttons, to allow the user to retry
this.unlockCards();
this.nextButton.hide();
this.enableNextButton();
this._readyToSubmit = true;
this.trigger("readySubmit");
},


Expand Down