Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add a class to the anchor link
  • Loading branch information
pogione authored and Eugene Simakin committed May 6, 2016
1 parent c3af717 commit 37895e4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
5 changes: 3 additions & 2 deletions jquery.twbsPagination.js
Expand Up @@ -136,7 +136,7 @@
$itemContainer.addClass(this.options[type + 'Class']);
$itemContainer.data('page', page);
$itemContainer.data('page-type', type);
$itemContainer.append($itemContent.attr('href', this.makeHref(page)).html(itemText));
$itemContainer.append($itemContent.attr('href', this.makeHref(page)).addClass(this.options.anchorClass).html(itemText));

return $itemContainer;
},
Expand Down Expand Up @@ -271,7 +271,8 @@
firstClass: 'first',
pageClass: 'page',
activeClass: 'active',
disabledClass: 'disabled'
disabledClass: 'disabled',
anchorClass: 'page-link'
};

$.fn.twbsPagination.Constructor = TwbsPagination;
Expand Down
10 changes: 5 additions & 5 deletions jquery.twbsPagination.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 37895e4

Please sign in to comment.