mirror of
https://github.com/silverstripe/silverstripe-comments
synced 2024-10-22 11:05:49 +02:00
'live' is deprecated, use 'on' instead.
This commit is contained in:
parent
6de470125b
commit
240c73b2a8
@ -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'),
|
||||
|
Loading…
Reference in New Issue
Block a user