X-Git-Url: https://scripts.mit.edu/gitweb/autoinstallsdev/wordpress.git/blobdiff_plain/b925718b4bf2dd47a8429f844d0a255ca6e35bd1..f739362bc2205036998dacdccb4f07eda9048877:/wp-content/plugins/akismet/_inc/akismet.js?ds=sidebyside diff --git a/wp-content/plugins/akismet/_inc/akismet.js b/wp-content/plugins/akismet/_inc/akismet.js index 246c8581..ca4ebd2e 100644 --- a/wp-content/plugins/akismet/_inc/akismet.js +++ b/wp-content/plugins/akismet/_inc/akismet.js @@ -45,7 +45,8 @@ jQuery( function ( $ ) { ); } }); - $('.remove_url').live('click', function () { + + $( '#the-comment-list' ).on( 'click', '.remove_url', function () { var thisId = $(this).attr('commentid'); var data = { action: 'comment_author_deurl', @@ -82,8 +83,7 @@ jQuery( function ( $ ) { }); return false; - }); - $('.akismet_undo_link_removal').live('click', function () { + }).on( 'click', '.akismet_undo_link_removal', function () { var thisId = $(this).attr('cid'); var thisUrl = $(this).attr('href'); var data = { @@ -177,7 +177,7 @@ jQuery( function ( $ ) { 'limit': limit }, function(result) { - if (result.processed < limit) { + if (result.counts.processed < limit) { window.location.reload(); } else {