diff options
author | alecpl <alec@alec.pl> | 2010-11-03 14:19:48 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2010-11-03 14:19:48 +0000 |
commit | c50d8872ced7c09dd9fcf5b3bf460c31e5b0c0ce (patch) | |
tree | 33d773910562f4a078e0276e67b85a12a835a7f5 /program/steps/mail/move_del.inc | |
parent | 8f558fc624e4cef86487b9ecc8e4cdfd09cd44dc (diff) |
- Add missing confirmation/error messages on contact/group/message actions (#1486845)
- Add 'loading' message on message move/copy/delete/mark actions
Diffstat (limited to 'program/steps/mail/move_del.inc')
-rw-r--r-- | program/steps/mail/move_del.inc | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/program/steps/mail/move_del.inc b/program/steps/mail/move_del.inc index 5078fb02c..4f52a60ca 100644 --- a/program/steps/mail/move_del.inc +++ b/program/steps/mail/move_del.inc @@ -43,6 +43,9 @@ if ($RCMAIL->action=='moveto' && !empty($_POST['_uid']) && !empty($_POST['_targe $OUTPUT->send(); exit; } + else { + $OUTPUT->show_message('messagemoved', 'confirmation'); + } $addrows = true; } @@ -52,7 +55,7 @@ else if ($RCMAIL->action=='delete' && !empty($_POST['_uid'])) { $mbox = get_input_value('_mbox', RCUBE_INPUT_POST); $del = $IMAP->delete_message($uids, $mbox); - + if (!$del) { // send error message if ($_POST['_from'] != 'show') @@ -61,7 +64,10 @@ else if ($RCMAIL->action=='delete' && !empty($_POST['_uid'])) { $OUTPUT->send(); exit; } - + else { + $OUTPUT->show_message('messagedeleted', 'confirmation'); + } + $addrows = true; } // unknown action or missing query param |