Skip to content
This repository has been archived by the owner on Jun 24, 2023. It is now read-only.

Change behavior of the show option #82

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ Wizard
<td>show</td>
<td>boolean</td>
<td>false</td>
<td>Shows the modal when initialized.</td>
<td>Shows the wizard when initialized.</td>
</tr>
<tr>
<td>showCancel</td>
Expand Down
1 change: 1 addition & 0 deletions demo/demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,7 @@ <h3>Agent Setup</h3>
keyboard : false,
contentHeight : 400,
contentWidth : 700,
show: true,
backdrop: 'static'
});

Expand Down
6 changes: 5 additions & 1 deletion src/bootstrap-wizard.js
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@

this.modal = this.el.modal({
keyboard: this.args.keyboard,
show: this.args.show,
show: false,
backdrop: this.args.backdrop
});

Expand Down Expand Up @@ -538,6 +538,10 @@

// Set Modal Dimensions
this.autoDimensions();

if (this.args.show) {
this.show();
}
},

autoDimensions: function() {
Expand Down