Commit ca27dc041f732c34bd451166557ccf436b5b0ac8

Authored by Larissa Reis
1 parent fe0a50b2

[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 1 (function($) {
2 2 // Pagination.
3   - $('#search-content .pagination a').live('click', function () {
  3 + $('#search-content .pagination').on('click', 'a', function () {
4 4 $.ajax({
5 5 url: this.href,
6 6 beforeSend: function(){$('#search-content').addClass('fetching')},
... ...