Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
josecebe#167 hideOnlyOnePage and initiateStartPageclick combined fix
  • Loading branch information
josecebe committed Jul 28, 2018
1 parent f41bb7e commit 6b9625e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion jquery.twbsPagination.js
Expand Up @@ -38,7 +38,9 @@

// hide if only one page exists
if (this.options.hideOnlyOnePage && this.options.totalPages == 1) {
this.$element.trigger('page', 1);
if (this.options.initiateStartPageClick) {
this.$element.trigger('page', 1);
}
return this;
}

Expand Down

0 comments on commit 6b9625e

Please sign in to comment.