diff --git a/README.md b/README.md index a4dd90e..22700fa 100644 --- a/README.md +++ b/README.md @@ -122,7 +122,7 @@ Wizard show boolean false - Shows the modal when initialized. + Shows the wizard when initialized. showCancel diff --git a/demo/demo.html b/demo/demo.html index c8c1119..659ceaa 100644 --- a/demo/demo.html +++ b/demo/demo.html @@ -320,6 +320,7 @@

Agent Setup

keyboard : false, contentHeight : 400, contentWidth : 700, + show: true, backdrop: 'static' }); diff --git a/src/bootstrap-wizard.js b/src/bootstrap-wizard.js index ec7eed0..289e66c 100644 --- a/src/bootstrap-wizard.js +++ b/src/bootstrap-wizard.js @@ -460,7 +460,7 @@ this.modal = this.el.modal({ keyboard: this.args.keyboard, - show: this.args.show, + show: false, backdrop: this.args.backdrop }); @@ -538,6 +538,10 @@ // Set Modal Dimensions this.autoDimensions(); + + if (this.args.show) { + this.show(); + } }, autoDimensions: function() {