Commit b8a99f8ec00c289c663a0ef364adf44c2997af61
1 parent
ca27dc04
Exists in
master
and in
27 other branches
[search-improvements] Makes replacement for .live() closer to its behavior
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
public/javascripts/search.js
1 | (function($) { | 1 | (function($) { |
2 | // Pagination. | 2 | // Pagination. |
3 | - $('#search-content .pagination').on('click', 'a', function () { | 3 | + $('#search-content').on('click', '.pagination a', function () { |
4 | $.ajax({ | 4 | $.ajax({ |
5 | url: this.href, | 5 | url: this.href, |
6 | beforeSend: function(){$('#search-content').addClass('fetching')}, | 6 | beforeSend: function(){$('#search-content').addClass('fetching')}, |