removing deprecated jQuery 'live' function usage
This commit is contained in:
1 parent
d18fd04ce9
commit
e5822e069a
1 file changed
+1
-1
@@ -277,7 +277,7 @@ $(function(){
|
||||
$(window).bind('hashchange',list).trigger('hashchange');
|
||||
$('#table').tablesorter();
|
||||
|
||||
$('.delete').live('click',function(data) {
|
||||
$('#table').on('click','.delete',function(data) {
|
||||
$.post("",{'do':'delete',file:$(this).attr('data-file'),xsrf:XSRF},function(response){
|
||||
list();
|
||||
},'json');
|
||||
|
||||
Reference in new issue
Block a user