mirror of
https://github.com/jcampbell1/simple-file-manager.git
synced 2025-02-20 22:00:04 +01:00
removing deprecated jQuery 'live' function usage
This commit is contained in:
@@ -277,7 +277,7 @@ $(function(){
|
|||||||
$(window).bind('hashchange',list).trigger('hashchange');
|
$(window).bind('hashchange',list).trigger('hashchange');
|
||||||
$('#table').tablesorter();
|
$('#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){
|
$.post("",{'do':'delete',file:$(this).attr('data-file'),xsrf:XSRF},function(response){
|
||||||
list();
|
list();
|
||||||
},'json');
|
},'json');
|
||||||
|
|||||||
Reference in New Issue
Block a user