Skip to content

Commit

Permalink
added extra confirmation for document deletion #177
Browse files Browse the repository at this point in the history
  • Loading branch information
proycon committed Aug 9, 2021
1 parent c7a51d0 commit eb93ce1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions flat/script/flat.js
Original file line number Diff line number Diff line change
Expand Up @@ -755,6 +755,11 @@ function clickparent() {

function submitfilemanager(filemanmode) {
//Submit a file management operation (sets a mode and submits the HTML form)
if (filemanmode == "delete") {
if (!confirm("Are you sure you want to delete the selected documents?")) {
return;
}
}
$('#filemanmode').val(filemanmode);
$('#filemanform').submit();
$('#filemanmode').val("");
Expand Down

0 comments on commit eb93ce1

Please sign in to comment.