Commit ca27dc041f732c34bd451166557ccf436b5b0ac8
1 parent
fe0a50b2
Exists in
master
and in
29 other branches
[search-improvements] Removes .live() from search.js
.live() is deprecated starting from jQuery 1.7 so I replaced it with .on()
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 a').live('click', function () { | 3 | + $('#search-content .pagination').on('click', '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')}, |