simple-file-manager
simple-file-manager copied to clipboard
No delete confirmation (and fix)
There's no delete confirmation. To add one, change code line 310-312 from
$.post("",{'do':'delete',file:$(this).attr('data-file'),xsrf:XSRF},function(response){
list();
},'json');
into this
if(confirm('Are you sure?')){
$.post("",{'do':'delete',file:$(this).attr('data-file'),xsrf:XSRF},function(response){
list();
},'json');
}