Changeset 46cdbf0 in github
- Timestamp:
- Nov 10, 2011 6:16:32 AM (19 months ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.8
- Children:
- 55a8a8c
- Parents:
- d617566
- Files:
-
- 11 edited
-
CHANGELOG (modified) (1 diff)
-
program/include/rcube_imap.php (modified) (1 diff)
-
program/js/app.js (modified) (3 diffs)
-
program/localization/en_US/labels.inc (modified) (1 diff)
-
program/localization/pl_PL/labels.inc (modified) (1 diff)
-
program/steps/mail/show.inc (modified) (3 diffs)
-
skins/default/common.css (modified) (4 diffs)
-
skins/default/ie6hacks.css (modified) (1 diff)
-
skins/default/mail.css (modified) (3 diffs)
-
skins/default/templates/message.html (modified) (1 diff)
-
skins/default/templates/messagepreview.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
CHANGELOG
rd617566 r46cdbf0 2 2 =========================== 3 3 4 - Fix inconsistent behaviour of Compose button in Drafts folder, add Edit button for drafts 4 5 - Fix problem with parsing HTML message body with non-unicode characters (#1487813) 5 6 - Add option to define matching method for addressbook search (#1486564, #1487907) -
program/include/rcube_imap.php
raa07b22 r46cdbf0 479 479 function get_mailbox_name() 480 480 { 481 return $this-> conn->connected() ? $this->mailbox : '';481 return $this->mailbox; 482 482 } 483 483 -
program/js/app.js
r62c8618 r46cdbf0 208 208 'print', 'load-attachment', 'load-headers', 'forward-attachment']; 209 209 210 if (this.env.action =='show' || this.env.action=='preview') {210 if (this.env.action == 'show' || this.env.action == 'preview') { 211 211 this.enable_command(this.env.message_commands, this.env.uid); 212 212 this.enable_command('reply-list', this.env.list_post); … … 461 461 462 462 // check input before leaving compose step 463 if (this.task =='mail' && this.env.action=='compose' && $.inArray(command, this.env.compose_commands)<0) {463 if (this.task == 'mail' && this.env.action == 'compose' && $.inArray(command, this.env.compose_commands)<0) { 464 464 if (this.cmp_hash != this.compose_field_hash() && !confirm(this.get_label('notsentwarning'))) 465 465 return false; … … 816 816 if (this.task == 'mail') { 817 817 url += '&_mbox='+urlencode(this.env.mailbox); 818 819 if (this.env.mailbox == this.env.drafts_mailbox) { 820 var uid; 821 if (uid = this.get_single_uid()) 822 url += '&_draft_uid='+uid; 823 } 824 else if (props) 818 if (props) 825 819 url += '&_to='+urlencode(props); 826 820 } -
program/localization/en_US/labels.inc
r1cc9e21 r46cdbf0 226 226 $labels['showimages'] = 'Display images'; 227 227 $labels['alwaysshow'] = 'Always show images from $sender'; 228 $labels['isdraft'] = 'This is a draft message.'; 228 229 229 230 $labels['htmltoggle'] = 'HTML'; -
program/localization/pl_PL/labels.inc
r32226f73 r46cdbf0 486 486 $labels['dateformat'] = 'Format daty'; 487 487 $labels['timeformat'] = 'Format czasu'; 488 $labels['isdraft'] = 'To jest kopia robocza wiadomoÅci.'; 488 489 489 490 ?> -
program/steps/mail/show.inc
r9e54e6f r46cdbf0 151 151 } 152 152 153 function rcmail_remote_objects_msg( $attrib)153 function rcmail_remote_objects_msg() 154 154 { 155 155 global $MESSAGE, $RCMAIL; 156 156 157 if (!$attrib['id']) 158 $attrib['id'] = 'rcmremoteobjmsg'; 157 $attrib['id'] = 'remote-objects-message'; 158 $attrib['class'] = 'notice'; 159 $attrib['style'] = 'display: none'; 159 160 160 161 $msg = Q(rcube_label('blockedimages')) . ' '; … … 169 170 $RCMAIL->output->add_gui_object('remoteobjectsmsg', $attrib['id']); 170 171 return html::div($attrib, $msg); 172 } 173 174 function rcmail_message_buttons() 175 { 176 global $MESSAGE, $RCMAIL, $CONFIG; 177 178 $mbox = $RCMAIL->imap->get_mailbox_name(); 179 $delim = $RCMAIL->imap->get_hierarchy_delimiter(); 180 $dbox = $CONFIG['drafts_mbox']; 181 182 // the message is not a draft 183 if ($mbox != $dbox && strpos($mbox, $dbox.$delim) !== 0) { 184 return ''; 185 } 186 187 $attrib['id'] = 'message-buttons'; 188 $attrib['class'] = 'notice'; 189 190 $msg = Q(rcube_label('isdraft')) . ' '; 191 $msg .= html::a(array('href' => "#edit", 'onclick' => JS_OBJECT_NAME.".command('edit')"), Q(rcube_label('edit'))); 192 193 return html::div($attrib, $msg); 194 } 195 196 function rcmail_message_objects($attrib) 197 { 198 global $RCMAIL, $MESSAGE; 199 200 if (!$attrib['id']) 201 $attrib['id'] = 'message-objects'; 202 203 $content = array( 204 rcmail_message_buttons(), 205 rcmail_remote_objects_msg(), 206 ); 207 208 $plugin = $RCMAIL->plugins->exec_hook('message_objects', 209 array('content' => $content, 'message' => $MESSAGE)); 210 211 $content = implode("\n", $plugin['content']); 212 213 return html::div($attrib, $content); 171 214 } 172 215 … … 190 233 'messageattachments' => 'rcmail_message_attachments', 191 234 'mailboxname' => 'rcmail_mailbox_name_display', 192 'blockedobjects' => 'rcmail_remote_objects_msg')); 235 'messageobjects' => 'rcmail_message_objects', 236 )); 193 237 194 238 -
skins/default/common.css
r58487bb r46cdbf0 231 231 232 232 #message div.notice, 233 # remote-objects-message233 #message-objects div.notice 234 234 { 235 235 background: url(images/display/icons.png) 6px 3px no-repeat; … … 239 239 240 240 #message div.error, 241 #message div.warning 241 #message div.warning, 242 #message-objects div.warning, 243 #message-objects div.error 242 244 { 243 245 background: url(images/display/icons.png) 6px -97px no-repeat; … … 246 248 } 247 249 248 #message div.confirmation 250 #message div.confirmation, 251 #message-objects div.confirmation 249 252 { 250 253 background: url(images/display/icons.png) 6px -47px no-repeat; … … 253 256 } 254 257 255 #message div.loading 258 #message div.loading, 259 #message-objects div.loading 256 260 { 257 261 background: url(images/display/loading.gif) 6px 3px no-repeat; -
skins/default/ie6hacks.css
r7a2bade r46cdbf0 21 21 #message div.warning, 22 22 #message div.confirmation, 23 #remote-objects-message 23 #message-objects div.notice, 24 #message-objects div.error, 25 #message-objects div.warning, 26 #message-objects div.confirmation 24 27 { 25 28 background-image: url(images/display/icons.gif); -
skins/default/mail.css
r57863c1 r46cdbf0 1198 1198 } 1199 1199 1200 #remote-objects-message 1201 { 1202 display: none; 1200 #message-objects div 1201 { 1203 1202 margin: 8px; 1204 1203 min-height: 20px; … … 1206 1205 } 1207 1206 1208 # remote-objects-messagea1207 #message-objects div a 1209 1208 { 1210 1209 color: #666666; … … 1212 1211 } 1213 1212 1214 # remote-objects-messagea:hover1213 #message-objects div a:hover 1215 1214 { 1216 1215 color: #333333; -
skins/default/templates/message.html
r8e99ffb r46cdbf0 37 37 <roundcube:object name="messageFullHeaders" id="full-headers" /> 38 38 <roundcube:object name="messageAttachments" id="attachment-list" /> 39 40 <roundcube:object name="blockedObjects" id="remote-objects-message" /> 39 <roundcube:object name="messageObjects" id="message-objects" /> 41 40 <roundcube:object name="messageBody" id="messagebody" /> 42 41 </div> -
skins/default/templates/messagepreview.html
rc6be456 r46cdbf0 14 14 </div> 15 15 16 <roundcube:object name=" blockedObjects" id="remote-objects-message" />16 <roundcube:object name="messageObjects" id="message-objects" /> 17 17 <roundcube:object name="messageBody" id="messagebody" /> 18 18
Note: See TracChangeset
for help on using the changeset viewer.
