From 6b9625e6b5010a6719b65de4c13d1bbff82fc474 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jose=20Cebell=C3=A1n=20S=C3=A1nchez?= Date: Sat, 28 Jul 2018 15:28:07 +0200 Subject: [PATCH] #167 hideOnlyOnePage and initiateStartPageclick combined fix --- jquery.twbsPagination.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/jquery.twbsPagination.js b/jquery.twbsPagination.js index 5632e66..ab625b8 100644 --- a/jquery.twbsPagination.js +++ b/jquery.twbsPagination.js @@ -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; }