jcampbell1 / simple-file-manager

A Simple PHP file manager. The code is a single php file.
MIT License
914 stars 502 forks source link

if is use my session... #130

Open csaksapi opened 1 year ago

csaksapi commented 1 year ago

Hi!

First of all thanks this file manager :)

everything works fine only one thing doesn't: if i use my session (local cms) the delete button cannot refresh the list (only if i press F5)

i try the code to rewrite but not very successfully :( i try this:

~ line 310

$('#table').on('click','.delete',function(data) {
     $.post("",{'do':'delete',file:$(this).attr('data-file'),xsrf:XSRF},function(response){
          list();
          location.reload(true);
      },'json');
    return false;
});

thank you in advance for the answers! <3