From b2bee445a41cc36c2945b5ce4e909b53186e9e90 Mon Sep 17 00:00:00 2001 From: Fabio Niephaus Date: Sun, 20 Apr 2014 21:39:32 +0200 Subject: [PATCH 1/3] Fix show option --- src/bootstrap-wizard.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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() { From 8e72be01a5077b039d01ddbfbafd92115dfee8c1 Mon Sep 17 00:00:00 2001 From: Fabio Niephaus Date: Sun, 20 Apr 2014 21:41:02 +0200 Subject: [PATCH 2/3] Show the wizard when initialized --- demo/demo.html | 1 + 1 file changed, 1 insertion(+) 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' }); From 1b5f20a8dcdd546dae29149ff17f0dec57693d1a Mon Sep 17 00:00:00 2001 From: Fabio Niephaus Date: Sun, 20 Apr 2014 21:41:18 +0200 Subject: [PATCH 3/3] Update readme to reflect changes --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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