removing deprecated jQuery 'live' function usage

This commit is contained in:
John Campbell
2018-04-12 15:02:48 -04:00
parent d18fd04ce9
commit e5822e069a

View File

@@ -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');