Changeset 2873 in subversion
- Timestamp:
- Aug 27, 2009 2:18:54 AM (4 years ago)
- Location:
- trunk/roundcubemail/program
- Files:
-
- 2 edited
-
js/app.js (modified) (3 diffs)
-
steps/settings/save_prefs.inc (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/program/js/app.js
r2855 r2873 698 698 this.load_identity(props, 'edit-identity'); 699 699 else if (this.task=='mail' && (cid = this.get_single_uid())) { 700 var url = (this.env.mailbox == this.env.drafts_mailbox) ? '_draft_uid=' : '_uid=';700 var url = (this.env.mailbox == this.env.drafts_mailbox) ? '_draft_uid=' : '_uid='; 701 701 this.goto_url('compose', url+cid+'&_mbox='+urlencode(this.env.mailbox), true); 702 }702 } 703 703 break; 704 704 … … 838 838 if (props == 'invert') 839 839 this.message_list.invert_selection(); 840 else840 else 841 841 this.message_list.select_all(props); 842 842 break; … … 1215 1215 this.display_message('Request timed out!', 'error'); 1216 1216 }; 1217 1218 this.reload = function(delay) 1219 { 1220 if (this.env.framed && parent.rcmail) 1221 parent.rcmail.reload(delay); 1222 else if (delay) 1223 window.setTimeout(function(){ rcmail.reload(); }, delay); 1224 else if (window.location) 1225 location.href = this.env.comm_path; 1226 }; 1217 1227 1218 1228 -
trunk/roundcubemail/program/steps/settings/save_prefs.inc
r2830 r2873 103 103 104 104 // switch UI language 105 if (isset($_POST['_language']) ) {105 if (isset($_POST['_language']) && $a_user_prefs['language'] != $_SESSION['language']) { 106 106 $RCMAIL->load_language($a_user_prefs['language']); 107 $OUTPUT->command('reload', 500); 107 108 } 108 109 … … 133 134 if (in_array('default_imap_folders', (array)$CONFIG['dont_override'])) { 134 135 foreach (array('drafts_mbox','sent_mbox','junk_mbox','trash_mbox') as $p) 135 $a_user_prefs[$p] = $CONFIG[$p];136 $a_user_prefs[$p] = $CONFIG[$p]; 136 137 } else { 137 138 $a_user_prefs['default_imap_folders'] = array('INBOX'); 138 139 foreach (array('drafts_mbox','sent_mbox','junk_mbox','trash_mbox') as $p) { 139 if ($a_user_prefs[$p])140 if ($a_user_prefs[$p]) 140 141 $a_user_prefs['default_imap_folders'][] = $a_user_prefs[$p]; 141 }142 } 142 143 } 143 144
Note: See TracChangeset
for help on using the changeset viewer.
