root / drupal7 / sites / all / themes / bootstrap / js / modules / views / js / ajax_view.js @ 87dbc3bf
1 | 87dbc3bf | Benjamin Luce | (function ($) { |
---|---|---|---|
2 | |||
3 | /**
|
||
4 | * Override Views prototype function so it can recognize Bootstrap AJAX pagers.
|
||
5 | * Attach the ajax behavior to each link.
|
||
6 | */
|
||
7 | Drupal.views.ajaxView.prototype.attachPagerAjax = function() { |
||
8 | this.$view.find('ul.pager > li > a, th.views-field a, .attachment .views-summary a, ul.pagination li a') |
||
9 | .each(jQuery.proxy(this.attachPagerLinkAjax, this)); |
||
10 | }; |
||
11 | |||
12 | })(jQuery); |