summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2010-11-04 07:41:06 +0000
committeralecpl <alec@alec.pl>2010-11-04 07:41:06 +0000
commit1555ac6018802ed43c14c76aa26c830142c9d0b3 (patch)
tree08548729b4db387d8e8dd8cac97d762b70fe915f /program
parent8738e943db45650f56b1f0adcd18004ff1f3ebfe (diff)
- Don't show confirmation message when marking message as read using delay (preview_pane_mark_read>0)
Diffstat (limited to 'program')
-rw-r--r--program/js/app.js2
-rw-r--r--program/steps/mail/mark.inc2
2 files changed, 2 insertions, 2 deletions
diff --git a/program/js/app.js b/program/js/app.js
index bbc455021..30eaef526 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -1838,7 +1838,7 @@ function rcube_webmail()
ref.set_unread_count(ref.env.mailbox, ref.env.unread_counts[ref.env.mailbox], ref.env.mailbox == 'INBOX');
}
if (ref.env.preview_pane_mark_read > 0)
- ref.http_post('mark', '_uid='+id+'&_flag=read');
+ ref.http_post('mark', '_uid='+id+'&_flag=read&_quiet=1');
}, this.env.preview_pane_mark_read * 1000);
}
}
diff --git a/program/steps/mail/mark.inc b/program/steps/mail/mark.inc
index 467548161..5411e3f46 100644
--- a/program/steps/mail/mark.inc
+++ b/program/steps/mail/mark.inc
@@ -51,7 +51,7 @@ if (($uids = get_input_value('_uid', RCUBE_INPUT_POST)) && ($flag = get_input_va
$OUTPUT->send();
exit;
}
- else {
+ else if (empty($_POST['_quiet'])) {
$OUTPUT->show_message('messagemarked', 'confirmation');
}