Changeset 4579 in subversion
- Timestamp:
- Feb 28, 2011 4:21:46 AM (2 years ago)
- Location:
- trunk/roundcubemail
- Files:
-
- 2 edited
-
CHANGELOG (modified) (1 diff)
-
program/js/app.js (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/CHANGELOG
r4577 r4579 2 2 =========================== 3 3 4 - Force IE to send referers (#1487806) 4 5 - Fixed de_CH Localization bugs (#1487773) 5 6 - Better display of vcard import results (#1485457) -
trunk/roundcubemail/program/js/app.js
r4574 r4579 1852 1852 (this.is_framed() ? parent.rcmail : this).env.frame_lock = this.set_busy(true, 'loading'); 1853 1853 } 1854 t arget.location.href = this.env.comm_path+url;1854 this.location_href(this.env.comm_path+url, target); 1855 1855 1856 1856 // mark as read and change mbox unread counter … … 1974 1974 if (mbox) { 1975 1975 this.set_busy(true, 'loading'); 1976 t arget.location.href = this.env.comm_path+'&_mbox='+urlencode(mbox)+(page ? '&_page='+page : '')+url;1976 this.location_href(this.env.comm_path+'&_mbox='+urlencode(mbox)+(page ? '&_page='+page : '')+url, target); 1977 1977 } 1978 1978 }; … … 3667 3667 3668 3668 this.set_busy(true, 'loading'); 3669 t arget.location.href = this.env.comm_path + (src ? '&_source='+urlencode(src) : '') + add_url;3669 this.location_href(this.env.comm_path + (src ? '&_source='+urlencode(src) : '') + add_url, target); 3670 3670 }; 3671 3671 … … 3713 3713 3714 3714 this.set_busy(true); 3715 t arget.location.href = this.env.comm_path+'&_action='+action+'&_source='+urlencode(this.env.source)+'&_cid='+urlencode(cid) + add_url;3715 this.location_href(this.env.comm_path+'&_action='+action+'&_source='+urlencode(this.env.source)+'&_cid='+urlencode(cid) + add_url, target); 3716 3716 } 3717 3717 return true; … … 4188 4188 target = window.frames[this.env.contentframe]; 4189 4189 } 4190 t arget.location.href = this.env.comm_path+'&_action=edit-prefs&_section='+id+add_url;4190 this.location_href(this.env.comm_path+'&_action=edit-prefs&_section='+id+add_url, target); 4191 4191 } 4192 4192 … … 4217 4217 if (action && (id || action=='add-identity')) { 4218 4218 this.set_busy(true); 4219 t arget.location.href = this.env.comm_path+'&_action='+action+'&_iid='+id+add_url;4219 this.location_href(this.env.comm_path+'&_action='+action+'&_iid='+id+add_url, target); 4220 4220 } 4221 4221 … … 4482 4482 (parent.rcmail ? parent.rcmail : this).env.frame_lock = this.set_busy(true, 'loading'); 4483 4483 } 4484 t arget.location.href = this.env.comm_path+url;4484 this.location_href(this.env.comm_path+url, target); 4485 4485 } 4486 4486 }; … … 5186 5186 this.set_busy(true); 5187 5187 5188 if (this. env.framed && window.parent)5189 parent. location.href = url;5188 if (this.is_framed()) 5189 parent.redirect(url, lock); 5190 5190 else 5191 location.href = url;5191 this.location_href(url, window); 5192 5192 }; 5193 5193 … … 5195 5195 { 5196 5196 this.redirect(this.url(action, query)); 5197 }; 5198 5199 this.location_href = function(url, target) 5200 { 5201 // simulate real link click to force IE to send referer header 5202 if (bw.ie && target == window) 5203 $('<a>').attr('href', url).appendTo(document.body).get(0).click(); 5204 else 5205 target.location.href = url; 5197 5206 }; 5198 5207
Note: See TracChangeset
for help on using the changeset viewer.
