Skip to content

Commit 51592f9

Browse files
committed
Merge remote-tracking branch 'origin/dev' into sw-2020
2 parents 60e3c9f + 2e4e7e1 commit 51592f9

File tree

4 files changed

+33
-5
lines changed

4 files changed

+33
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ $(document).ready(function(){
117117
</script>
118118
```
119119
That's it! Now you see the wizard on the page.
120-
Please see the [documentation](http://techlaboratory.net/smartwizard/documentation) for more deatils on implementation and usage.
120+
Please see the [documentation](http://techlaboratory.net/smartwizard/documentation) for more details on implementation and usage.
121121

122122
Features
123123
-----

dist/js/jquery.smartWizard.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,8 @@
159159
}
160160

161161
// Create the toolbar buttons
162-
var btnNext = this.options.toolbarSettings.showNextButton !== false ? $('<button></button>').text(this.options.lang.next).addClass('btn btn-secondary sw-btn-next').attr('type', 'button') : null;
163-
var btnPrevious = this.options.toolbarSettings.showPreviousButton !== false ? $('<button></button>').text(this.options.lang.previous).addClass('btn btn-secondary sw-btn-prev').attr('type', 'button') : null;
162+
var btnNext = this.options.toolbarSettings.showNextButton !== false ? $('<button></button>').html(this.options.lang.next).addClass('btn btn-secondary sw-btn-next').attr('type', 'button') : null;
163+
var btnPrevious = this.options.toolbarSettings.showPreviousButton !== false ? $('<button></button>').html(this.options.lang.previous).addClass('btn btn-secondary sw-btn-prev').attr('type', 'button') : null;
164164
var btnGroup = $('<div></div>').addClass('btn-group mr-2 sw-btn-group').attr('role', 'group').append(btnPrevious, btnNext);
165165

166166
// Add extra toolbar buttons
@@ -561,6 +561,11 @@
561561
// Trigger "themeChanged" event
562562
this._triggerEvent("themeChanged", [this.options.theme]);
563563
},
564+
gotonext: function () {
565+
var si = this.current_index + 1;
566+
this._transitPage(si);
567+
return true;
568+
},
564569
next: function () {
565570
this._showNext();
566571
},
@@ -644,4 +649,4 @@
644649
}
645650
}
646651
};
647-
})(jQuery, window, document);
652+
})(jQuery, window, document);

0 commit comments

Comments
 (0)