Merge pull request #81 from RuthAdele/patch-1

'live' is deprecated, use 'on' instead.
This commit is contained in:
Sean Harvey 2014-04-07 14:41:33 +12:00
commit cf33eb79a4
1 changed files with 2 additions and 2 deletions

View File

@ -111,7 +111,7 @@
* Clicking one of the metalinks performs the operation via ajax
* 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 comment = link.parents('.comment:first');
@ -154,7 +154,7 @@
/**
* Ajax pagination
*/
pagination.find('a').live('click', function(){
pagination.find('a').on('click', function(){
commentsList.addClass('loading');
$.ajax({
url: $(this).attr('href'),