From 06f189aceca81c847cf09c7a091ff728e10268be Mon Sep 17 00:00:00 2001 From: alec Date: Wed, 9 Jun 2010 13:39:48 +0000 Subject: - Added mailboxlist options menu in message page git-svn-id: https://svn.roundcube.net/trunk@3737 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/program/js/app.js | 3 ++- roundcubemail/program/steps/mail/show.inc | 5 ++++- roundcubemail/skins/default/templates/message.html | 14 +++++++++++++- roundcubemail/skins/default/templates/messageerror.html | 14 ++++++++++++++ 4 files changed, 33 insertions(+), 3 deletions(-) diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js index df512d06d..3067794e8 100644 --- a/roundcubemail/program/js/app.js +++ b/roundcubemail/program/js/app.js @@ -5022,7 +5022,8 @@ function rcube_webmail() this.enable_command(this.env.message_commands, 'purge', 'expunge', 'select-all', 'select-none', 'sort', 'expand-all', 'expand-unread', 'collapse-all', false); } - this.triggerEvent('listupdate', { folder:this.env.mailbox, rowcount:this.message_list.rowcount }); + if (this.message_list) + this.triggerEvent('listupdate', { folder:this.env.mailbox, rowcount:this.message_list.rowcount }); } break; diff --git a/roundcubemail/program/steps/mail/show.inc b/roundcubemail/program/steps/mail/show.inc index e130ecb76..71cbf7086 100644 --- a/roundcubemail/program/steps/mail/show.inc +++ b/roundcubemail/program/steps/mail/show.inc @@ -64,7 +64,7 @@ if ($uid = get_input_value('_uid', RCUBE_INPUT_GET)) { if (!$OUTPUT->ajax_call) $OUTPUT->add_label('checkingmail', 'deletemessage', 'movemessagetotrash', 'movingmessage'); - + // check for unset disposition notification if ($MESSAGE->headers->mdn_to && !$MESSAGE->headers->mdn_sent && !$MESSAGE->headers->seen && @@ -128,6 +128,9 @@ if ($uid = get_input_value('_uid', RCUBE_INPUT_GET)) { $OUTPUT->set_env('next_uid', $next); if ($last > 0) $OUTPUT->set_env('last_uid', $last); + + // Don't need a real messages count value + $OUTPUT->set_env('messagecount', 1); } if (!$MESSAGE->headers->seen && ($RCMAIL->action == 'show' || ($RCMAIL->action == 'preview' && intval($CONFIG['preview_pane_mark_read']) == 0))) diff --git a/roundcubemail/skins/default/templates/message.html b/roundcubemail/skins/default/templates/message.html index bd3291b9f..0bafc3e08 100644 --- a/roundcubemail/skins/default/templates/message.html +++ b/roundcubemail/skins/default/templates/message.html @@ -35,9 +35,12 @@
-
+
+
+ +
@@ -65,5 +68,14 @@ rcmail.add_onload('mailviewsplitv.init()'); +
+
    +
  • +
  • +
  • + +
+
+ diff --git a/roundcubemail/skins/default/templates/messageerror.html b/roundcubemail/skins/default/templates/messageerror.html index 0bd591a2a..3712217a3 100644 --- a/roundcubemail/skins/default/templates/messageerror.html +++ b/roundcubemail/skins/default/templates/messageerror.html @@ -41,8 +41,13 @@
+
+
+ +
+
@@ -58,6 +63,15 @@ rcmail.add_onload('mailviewsplitv.init()'); +
+
    +
  • +
  • +
  • + +
+
+ -- cgit v1.2.3