From e44d445ee3899477bb2bf13ada94badd54f8760f Mon Sep 17 00:00:00 2001 From: kunw Date: Sat, 6 Aug 2016 17:35:57 +0800 Subject: [PATCH] update for toggling page button. --- .../resources/js/components/paginator/paginator.directive.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/resources/js/components/paginator/paginator.directive.js b/static/resources/js/components/paginator/paginator.directive.js index ffbbfa5e3..ebabba51b 100644 --- a/static/resources/js/components/paginator/paginator.directive.js +++ b/static/resources/js/components/paginator/paginator.directive.js @@ -169,7 +169,7 @@ if(tc.canDecrement()) { tc.decrement(); drawButtons(tc.getTime()); - element.find('li[tag="pagination-button"] a[page="' + ctrl.page + '"]').trigger('click'); + togglePageButton(); } scope.$apply(); } @@ -178,7 +178,7 @@ if(tc.canIncrement()) { tc.increment(); drawButtons(tc.getTime()); - element.find('li[tag="pagination-button"] a[page="' + ctrl.page + '"]').trigger('click'); + togglePageButton(); } scope.$apply(); }