From 80e7a2a4b1dda3e2b6d17e4a1cce97014447054a Mon Sep 17 00:00:00 2001 From: CF Mitrah Date: Wed, 31 Dec 2014 12:32:27 +0530 Subject: [PATCH] Modification for Bootstrap 3 --- .../bootstrap.ajaxpager-2.0.js | 70 +++++++++++-------- 1 file changed, 39 insertions(+), 31 deletions(-) diff --git a/resources/scripts/bootstrap.ajaxpager/bootstrap.ajaxpager-2.0.js b/resources/scripts/bootstrap.ajaxpager/bootstrap.ajaxpager-2.0.js index 7cf71a1..c0c7233 100644 --- a/resources/scripts/bootstrap.ajaxpager/bootstrap.ajaxpager-2.0.js +++ b/resources/scripts/bootstrap.ajaxpager/bootstrap.ajaxpager-2.0.js @@ -147,8 +147,8 @@ } , _updatePageButtons: function () { - this.$startlinks.toggleClass("disabled", (this.options.page === 1)); - this.$endlinks.toggleClass("disabled", (this.options.page === this.private.totalpages)); + this.$startlinks.parent().toggleClass("disabled", (this.options.page === 1)); + this.$endlinks.parent().toggleClass("disabled", (this.options.page === this.private.totalpages)); } , _updateLimit: function (e) { @@ -158,8 +158,8 @@ , val = data.limit , itags = $("li>a>i", this.$limitdd); this.options.limit = val; - itags.removeClass("icon-chevron-right").addClass("icon-"); - el.children("i").removeClass("icon-").addClass("icon-chevron-right"); + itags.removeClass("glyphicon glyphicon-chevron-right").addClass("glyphicon glyphicon-"); + el.children("i").removeClass("glyphicon glyphicon-").addClass("glyphicon glyphicon-chevron-right"); el.closest("li.dropdown.open").removeClass("open"); this.reload(); return false; @@ -173,8 +173,8 @@ , itags = $("li>a>i", this.$sortby) , currClass = $("i", el).attr("class") , data = el.data() // data of the link that was clicked - , icnUp = "icon-arrow-up" - , icnDwn = "icon-arrow-down" + , icnUp = "glyphicon glyphicon-arrow-up" + , icnDwn = "glyphicon glyphicon-arrow-down" , iPlcr = "icon-" , newIcon = icnDwn; @@ -311,36 +311,43 @@ } , _buildPagerBar: function (settings) { - var ui = '