'live' is deprecated, use 'on' instead.

This commit is contained in:
RuthAdele 2014-04-07 12:05:42 +09:30
parent 6de470125b
commit 240c73b2a8

View File

@ -111,7 +111,7 @@
* Clicking one of the metalinks performs the operation via ajax * Clicking one of the metalinks performs the operation via ajax
* this inclues the spam and approve links * this inclues the spam and approve links
*/ */
$(".action-links a", commentsList).live('click', function(e) { $(".action-links a", commentsList).on('click', function(e) {
var link = $(this); var link = $(this);
var comment = link.parents('.comment:first'); var comment = link.parents('.comment:first');
@ -154,7 +154,7 @@
/** /**
* Ajax pagination * Ajax pagination
*/ */
pagination.find('a').live('click', function(){ pagination.find('a').on('click', function(){
commentsList.addClass('loading'); commentsList.addClass('loading');
$.ajax({ $.ajax({
url: $(this).attr('href'), url: $(this).attr('href'),