diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-11-04 13:48:17 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-11-04 13:48:17 +0000 |
| commit | 6a8d0cbf6fef417b356b76c56666d460127f319d (patch) | |
| tree | 68fb3e0346b4e5b79c167c8309d0586b4e484b37 /roundcubemail/program/steps/mail/func.inc | |
| parent | 9bc38e69308f3f6b57e7c9275a7da6a5490881ec (diff) | |
- Improve responsiveness of messages displaying (#1486986)
git-svn-id: https://svn.roundcube.net/trunk@4179 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps/mail/func.inc')
| -rw-r--r-- | roundcubemail/program/steps/mail/func.inc | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/roundcubemail/program/steps/mail/func.inc b/roundcubemail/program/steps/mail/func.inc index 11df12845..1237c9214 100644 --- a/roundcubemail/program/steps/mail/func.inc +++ b/roundcubemail/program/steps/mail/func.inc @@ -423,14 +423,16 @@ function rcmail_messagecontent_frame($attrib) function rcmail_messagecount_display($attrib) { - global $IMAP, $OUTPUT; + global $RCMAIL; if (!$attrib['id']) $attrib['id'] = 'rcmcountdisplay'; - $OUTPUT->add_gui_object('countdisplay', $attrib['id']); + $RCMAIL->output->add_gui_object('countdisplay', $attrib['id']); + + $content = $RCMAIL->action != 'show' ? rcmail_get_messagecount_text() : rcube_label('loading'); - return html::span($attrib, rcmail_get_messagecount_text()); + return html::span($attrib, $content); } @@ -495,14 +497,7 @@ function rcmail_quota_content($attrib=NULL) function rcmail_get_messagecount_text($count=NULL, $page=NULL) { - global $RCMAIL, $IMAP, $MESSAGE; - - if (isset($MESSAGE->index)) - { - return rcube_label(array('name' => 'messagenrof', - 'vars' => array('nr' => $MESSAGE->index+1, - 'count' => $count!==NULL ? $count : $IMAP->messagecount(NULL, 'ALL')))); // Only messages, no threads here - } + global $RCMAIL, $IMAP; if ($page===NULL) $page = $IMAP->list_page; |
