diff --git a/templates/files.html b/templates/files.html index b127ec0..bf13ed7 100644 --- a/templates/files.html +++ b/templates/files.html @@ -16,7 +16,8 @@ {% elif "files_sp" in request.url %} {% set tmp_path=cwd | replace( "static/Storage", "" ) + "/" %} - {% else %} + {% elif "files_rbp" in request.url %} + {% set tmp_path=cwd | replace( "static/Bin", "" ) + "/" %} {% endif %} {{tmp_path}} @@ -249,7 +250,7 @@ function DelDBox(del_or_undel) div+="'/restore_files', " div+=` data: to_del, - success: function(data){ console.log('Delete/Restore File(s) succeeded - TODO: need a FE msg' ); return false; } })" class="btn btn-outline-danger col-lg-2">Ok + success: function(data){ window.location='/'; return false; } })" class="btn btn-outline-danger col-lg-2">Ok ` $('#dbox-content').html(div)