Changeset 2639 in subversion
- Timestamp:
- Jun 11, 2009 2:07:35 PM (4 years ago)
- Location:
- trunk/roundcubemail
- Files:
-
- 5 edited
-
CHANGELOG (modified) (1 diff)
-
program/js/app.js (modified) (6 diffs)
-
program/steps/mail/compose.inc (modified) (7 diffs)
-
skins/default/includes/messagemenu.html (modified) (1 diff)
-
skins/default/mail.css (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/CHANGELOG
r2637 r2639 2 2 =========================== 3 3 4 - Added message Edit feature (#1483891, #1484440) 4 5 - Fix message Etag generation for counter issues (#1485623) 5 6 - Fix messages searching on MailEnable IMAP (#1485762) -
trunk/roundcubemail/program/js/app.js
r2638 r2639 190 190 { 191 191 this.enable_command('show', 'reply', 'reply-all', 'forward', 'moveto', 'delete', 192 'open', 'mark', ' viewsource', 'download', 'print', 'load-attachment', 'load-headers', true);192 'open', 'mark', 'edit', 'viewsource', 'download', 'print', 'load-attachment', 'load-headers', true); 193 193 194 194 if (this.env.next_uid) … … 692 692 else if (this.task=='settings' && props) 693 693 this.load_identity(props, 'edit-identity'); 694 else if (this.task=='mail' && (cid = this.get_single_uid())) { 695 var url = (this.env.mailbox == this.env.drafts_mailbox) ? '_draft_uid=' : '_uid='; 696 this.goto_url('compose', url+cid+'&_mbox='+urlencode(this.env.mailbox), true); 697 } 694 698 break; 695 699 … … 1394 1398 { 1395 1399 this.enable_command('reply', 'reply-all', 'forward', false); 1396 this.enable_command('show', 'print', 'open', ' download', 'viewsource', selected);1400 this.enable_command('show', 'print', 'open', 'edit', 'download', 'viewsource', selected); 1397 1401 this.enable_command('delete', 'moveto', 'mark', (list.selection.length > 0 ? true : false)); 1398 1402 } 1399 1403 else 1400 1404 { 1401 this.enable_command('show', 'reply', 'reply-all', 'forward', 'print', ' open', 'download', 'viewsource', selected);1405 this.enable_command('show', 'reply', 'reply-all', 'forward', 'print', 'edit', 'open', 'download', 'viewsource', selected); 1402 1406 this.enable_command('delete', 'moveto', 'mark', (list.selection.length > 0 ? true : false)); 1403 1407 } … … 1804 1808 1805 1809 // Hide message command buttons until a message is selected 1806 this.enable_command('reply', 'reply-all', 'forward', 'delete', 'mark', 'print', 'open', ' viewsource', 'download', false);1810 this.enable_command('reply', 'reply-all', 'forward', 'delete', 'mark', 'print', 'open', 'edit', 'viewsource', 'download', false); 1807 1811 1808 1812 this._with_selected_messages('moveto', lock, add_url); … … 3941 3945 if (this.env.action == 'show') { 3942 3946 // re-enable commands on move/delete error 3943 this.enable_command('reply', 'reply-all', 'forward', 'delete', 'mark', 'print', 'open', ' viewsource', 'download', true);3947 this.enable_command('reply', 'reply-all', 'forward', 'delete', 'mark', 'print', 'open', 'edit', 'viewsource', 'download', true); 3944 3948 } else if (this.message_list) 3945 3949 this.message_list.init(); … … 3954 3958 // disable commands useless when mailbox is empty 3955 3959 this.enable_command('show', 'reply', 'reply-all', 'forward', 'moveto', 'delete', 3956 'mark', 'viewsource', 'open', ' download', 'print', 'load-attachment',3960 'mark', 'viewsource', 'open', 'edit', 'download', 'print', 'load-attachment', 3957 3961 'purge', 'expunge', 'select-all', 'select-none', 'sort', false); 3958 3962 } -
trunk/roundcubemail/program/steps/mail/compose.inc
r2627 r2639 24 24 define('RCUBE_COMPOSE_FORWARD', 0x0107); 25 25 define('RCUBE_COMPOSE_DRAFT', 0x0108); 26 define('RCUBE_COMPOSE_EDIT', 0x0109); 26 27 27 28 $MESSAGE_FORM = NULL; … … 75 76 else if ($msg_uid = $_SESSION['compose']['param']['_forward_uid']) 76 77 $compose_mode = RCUBE_COMPOSE_FORWARD; 78 else if ($msg_uid = $_SESSION['compose']['param']['_uid']) 79 $compose_mode = RCUBE_COMPOSE_EDIT; 77 80 else if ($msg_uid = $_SESSION['compose']['param']['_draft_uid']) { 78 81 $RCMAIL->imap->set_mailbox($CONFIG['drafts_mbox']); … … 169 172 else if ($fname && !$fvalue && !empty($_SESSION['compose']['param'][$fname])) 170 173 $fvalue = $_SESSION['compose']['param'][$fname]; 171 172 174 else if ($header && $compose_mode == RCUBE_COMPOSE_REPLY) 173 175 { … … 209 211 } 210 212 } 211 else if ($header && $compose_mode == RCUBE_COMPOSE_DRAFT)213 else if ($header && in_array($compose_mode, array(RCUBE_COMPOSE_DRAFT, RCUBE_COMPOSE_EDIT))) 212 214 { 213 215 // get drafted headers … … 386 388 $body = rcmail_create_forward_body($body, $isHtml); 387 389 // load draft message body 388 else if ($compose_mode == RCUBE_COMPOSE_DRAFT )390 else if ($compose_mode == RCUBE_COMPOSE_DRAFT || $compose_mode == RCUBE_COMPOSE_EDIT) 389 391 $body = rcmail_create_draft_body($body, $isHtml); 390 392 } … … 690 692 } 691 693 // creeate a draft-subject 692 else if ($compose_mode == RCUBE_COMPOSE_DRAFT ) {694 else if ($compose_mode == RCUBE_COMPOSE_DRAFT || $compose_mode == RCUBE_COMPOSE_EDIT) { 693 695 $subject = $MESSAGE->subject; 694 696 } … … 829 831 830 832 $out = $form_start ? "$form_start\n" : ''; 831 $out .= $checkbox->show( 832 $compose_mode == RCUBE_COMPOSE_DRAFT&& $MESSAGE->headers->mdn_to ? 1 : 0);833 $out .= $checkbox->show(in_array($compose_mode, array(RCUBE_COMPOSE_DRAFT, RCUBE_COMPOSE_EDIT)) 834 && $MESSAGE->headers->mdn_to ? 1 : 0); 833 835 $out .= $form_end ? "\n$form_end" : ''; 834 836 -
trunk/roundcubemail/skins/default/includes/messagemenu.html
r2574 r2639 3 3 <li><roundcube:button class="printlink" command="print" label="printmessage" classAct="printlink active" /></li> 4 4 <li><roundcube:button class="downloadlink" command="download" label="emlsave" classAct="downloadlink active" /></li> 5 <li><roundcube:button class="editlink" command="edit" label="edit" classAct="editlink active" /></li> 5 6 <li class="separator_below"><roundcube:button class="sourcelink" command="viewsource" label="viewsource" classAct="sourcelink active" /></li> 6 7 <li><roundcube:button class="openlink" command="open" label="openinextwin" target="_blank" classAct="openlink active" /></li> -
trunk/roundcubemail/skins/default/mail.css
r2633 r2639 137 137 { 138 138 background: url('images/messageactions.png') no-repeat 1px 0; 139 background-position: 0px 20px; 139 140 } 140 141
Note: See TracChangeset
for help on using the changeset viewer.
