Changeset 29b3973 in github
- Timestamp:
- Nov 4, 2010 9:48:17 AM (3 years ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
- Children:
- 30b3022
- Parents:
- b8d8cbd
- Files:
-
- 1 added
- 4 edited
-
CHANGELOG (modified) (1 diff)
-
program/js/app.js (modified) (2 diffs)
-
program/steps/mail/func.inc (modified) (2 diffs)
-
program/steps/mail/pagenav.inc (added)
-
program/steps/mail/show.inc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
CHANGELOG
rc50d887 r29b3973 63 63 - Add missing confirmation/error messages on contact/group/message actions (#1486845) 64 64 - Add 'loading' message on message move/copy/delete/mark actions 65 - Improve responsiveness of messages displaying (#1486986) 65 66 66 67 RELEASE 0.4.2 -
program/js/app.js
r1555ac6 r29b3973 211 211 this.enable_command('reply-list', this.env.list_post); 212 212 213 if (this.env.next_uid) { 214 this.enable_command('nextmessage', 'lastmessage', true); 215 } 216 if (this.env.prev_uid) { 217 this.enable_command('previousmessage', 'firstmessage', true); 213 if (this.env.action == 'show') { 214 this.http_request('pagenav', '_uid='+this.env.uid+'&_mbox='+urlencode(this.env.mailbox), 215 this.display_message('', 'loading')); 218 216 } 219 217 … … 4596 4594 id = type + date.getTime(); 4597 4595 4598 // The same message of type 'loading' is already displayed 4599 if (type == 'loading' && this.messages[msg]) { 4600 this.messages[msg].elements.push(id); 4601 return id; 4596 if (type == 'loading') { 4597 if (!msg) 4598 msg = this.get_label('loading'); 4599 4600 // The same message of type 'loading' is already displayed 4601 if (this.messages[msg]) { 4602 this.messages[msg].elements.push(id); 4603 return id; 4604 } 4602 4605 } 4603 4606 -
program/steps/mail/func.inc
rc50d887 r29b3973 424 424 function rcmail_messagecount_display($attrib) 425 425 { 426 global $ IMAP, $OUTPUT;426 global $RCMAIL; 427 427 428 428 if (!$attrib['id']) 429 429 $attrib['id'] = 'rcmcountdisplay'; 430 430 431 $OUTPUT->add_gui_object('countdisplay', $attrib['id']); 432 433 return html::span($attrib, rcmail_get_messagecount_text()); 431 $RCMAIL->output->add_gui_object('countdisplay', $attrib['id']); 432 433 $content = $RCMAIL->action != 'show' ? rcmail_get_messagecount_text() : rcube_label('loading'); 434 435 return html::span($attrib, $content); 434 436 } 435 437 … … 496 498 function rcmail_get_messagecount_text($count=NULL, $page=NULL) 497 499 { 498 global $RCMAIL, $IMAP, $MESSAGE; 499 500 if (isset($MESSAGE->index)) 501 { 502 return rcube_label(array('name' => 'messagenrof', 503 'vars' => array('nr' => $MESSAGE->index+1, 504 'count' => $count!==NULL ? $count : $IMAP->messagecount(NULL, 'ALL')))); // Only messages, no threads here 505 } 500 global $RCMAIL, $IMAP; 506 501 507 502 if ($page===NULL) -
program/steps/mail/show.inc
r83ba22c r29b3973 95 95 } 96 96 97 // get previous, first, next and last message UID98 if ($RCMAIL->action != 'preview' && $RCMAIL->action != 'print')99 {100 $next = $prev = $first = $last = -1;101 102 if ($_SESSION['sort_col'] == 'date' && $_SESSION['sort_order'] != 'DESC'103 && empty($_REQUEST['_search']) && !$CONFIG['skip_deleted'] && !$IMAP->threading)104 {105 // this assumes that we are sorted by date_DESC106 $cnt = $IMAP->messagecount();107 $seq = $IMAP->get_id($MESSAGE->uid);108 $MESSAGE->index = $cnt - $seq;109 110 $prev = $IMAP->get_uid($seq + 1);111 $first = $IMAP->get_uid($cnt);112 $next = $IMAP->get_uid($seq - 1);113 $last = $IMAP->get_uid(1);114 }115 else116 {117 // Only if we use custom sorting118 $a_msg_index = $IMAP->message_index(NULL, $_SESSION['sort_col'], $_SESSION['sort_order']);119 120 $MESSAGE->index = array_search($IMAP->get_id($MESSAGE->uid), $a_msg_index);121 122 $count = count($a_msg_index);123 $prev = isset($a_msg_index[$MESSAGE->index-1]) ? $IMAP->get_uid($a_msg_index[$MESSAGE->index-1]) : -1;124 $first = $count > 1 ? $IMAP->get_uid($a_msg_index[0]) : -1;125 $next = isset($a_msg_index[$MESSAGE->index+1]) ? $IMAP->get_uid($a_msg_index[$MESSAGE->index+1]) : -1;126 $last = $count > 1 ? $IMAP->get_uid($a_msg_index[$count-1]) : -1;127 }128 129 if ($prev > 0)130 $OUTPUT->set_env('prev_uid', $prev);131 if ($first > 0)132 $OUTPUT->set_env('first_uid', $first);133 if ($next > 0)134 $OUTPUT->set_env('next_uid', $next);135 if ($last > 0)136 $OUTPUT->set_env('last_uid', $last);137 138 // Don't need a real messages count value139 $OUTPUT->set_env('messagecount', 1);140 }141 142 97 if (!$MESSAGE->headers->seen && ($RCMAIL->action == 'show' || ($RCMAIL->action == 'preview' && intval($CONFIG['preview_pane_mark_read']) == 0))) 143 98 $RCMAIL->plugins->exec_hook('message_read', array('uid' => $MESSAGE->uid,
Note: See TracChangeset
for help on using the changeset viewer.
