From 46c4640df650c1a48e8dc5db1e6639346f7cdc3c Mon Sep 17 00:00:00 2001 From: Eugene Simakin Date: Fri, 23 Sep 2016 17:58:29 +0300 Subject: [PATCH] Options fixed (v4 bootstrap support) --- examples/bootstrap-v4.html | 31 +++++++++++++++++++++++++++++++ examples/index.html | 30 ++++++++++++++++++++++++++++++ jquery.twbsPagination.js | 10 +++++----- 3 files changed, 66 insertions(+), 5 deletions(-) create mode 100644 examples/bootstrap-v4.html create mode 100644 examples/index.html diff --git a/examples/bootstrap-v4.html b/examples/bootstrap-v4.html new file mode 100644 index 0000000..27e4214 --- /dev/null +++ b/examples/bootstrap-v4.html @@ -0,0 +1,31 @@ + + + + + jQuery Pagination plugin + + + + + + + +
+ +
+ + + \ No newline at end of file diff --git a/examples/index.html b/examples/index.html new file mode 100644 index 0000000..687d461 --- /dev/null +++ b/examples/index.html @@ -0,0 +1,30 @@ + + + + + jQuery Pagination plugin + + + + + + +
+ +
+ + + \ No newline at end of file diff --git a/jquery.twbsPagination.js b/jquery.twbsPagination.js index b7db3b7..697a4f9 100644 --- a/jquery.twbsPagination.js +++ b/jquery.twbsPagination.js @@ -263,11 +263,11 @@ loop: false, onPageClick: null, paginationClass: 'pagination', - nextClass: 'next', - prevClass: 'prev', - lastClass: 'last', - firstClass: 'first', - pageClass: 'page', + nextClass: 'page-item next', + prevClass: 'page-item prev', + lastClass: 'page-item last', + firstClass: 'page-item first', + pageClass: 'page-item', activeClass: 'active', disabledClass: 'disabled', anchorClass: 'page-link'