simple-file-manager icon indicating copy to clipboard operation
simple-file-manager copied to clipboard

No delete confirmation (and fix)

Open adiakeka opened this issue 3 years ago • 0 comments

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

adiakeka avatar Dec 14 '21 09:12 adiakeka