From 5e781b4135172b22c56e937ab46b052eb08d6952 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 20 Dec 2010 23:23:44 +0000 Subject: [PATCH] Confirm before deleting multiple files --- filemanager/inc/class.filemanager_ui.inc.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/filemanager/inc/class.filemanager_ui.inc.php b/filemanager/inc/class.filemanager_ui.inc.php index e0bb97e9b5..64e3bd92b9 100644 --- a/filemanager/inc/class.filemanager_ui.inc.php +++ b/filemanager/inc/class.filemanager_ui.inc.php @@ -391,6 +391,10 @@ class filemanager_ui { open_mail(ids); } + else if (selbox.value == 'delete') + { + if (confirm('".lang('Delete these files or directories?')."')) selbox.form.submit(); + } else { selbox.form.submit();