Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/dev' into sw-2020
Browse files Browse the repository at this point in the history
  • Loading branch information
techlab committed Feb 5, 2020
2 parents 60e3c9f + 2e4e7e1 commit 51592f9
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ $(document).ready(function(){
</script>
```
That's it! Now you see the wizard on the page.
Please see the [documentation](http://techlaboratory.net/smartwizard/documentation) for more deatils on implementation and usage.
Please see the [documentation](http://techlaboratory.net/smartwizard/documentation) for more details on implementation and usage.

Features
-----
Expand Down
11 changes: 8 additions & 3 deletions dist/js/jquery.smartWizard.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,8 @@
}

// Create the toolbar buttons
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;
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;
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;
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;
var btnGroup = $('<div></div>').addClass('btn-group mr-2 sw-btn-group').attr('role', 'group').append(btnPrevious, btnNext);

// Add extra toolbar buttons
Expand Down Expand Up @@ -561,6 +561,11 @@
// Trigger "themeChanged" event
this._triggerEvent("themeChanged", [this.options.theme]);
},
gotonext: function () {
var si = this.current_index + 1;
this._transitPage(si);
return true;
},
next: function () {
this._showNext();
},
Expand Down Expand Up @@ -644,4 +649,4 @@
}
}
};
})(jQuery, window, document);
})(jQuery, window, document);
Loading

0 comments on commit 51592f9

Please sign in to comment.