Changeset 4302 in subversion
- Timestamp:
- Dec 2, 2010 4:05:56 AM (2 years ago)
- File:
-
- 1 edited
-
trunk/roundcubemail/program/js/app.js (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/program/js/app.js
r4229 r4302 149 149 150 150 // tell parent window that this frame is loaded 151 if (this. env.framed && parent.rcmail && parent.rcmail.set_busy) {151 if (this.is_framed()) { 152 152 parent.rcmail.set_busy(false, null, parent.rcmail.env.frame_lock); 153 153 parent.rcmail.env.frame_lock = null; … … 223 223 224 224 // make preview/message frame visible 225 if (this.env.action == 'preview' && this. env.framed && parent.rcmail) {225 if (this.env.action == 'preview' && this.is_framed()) { 226 226 this.enable_command('compose', 'add-contact', false); 227 227 parent.rcmail.show_contentframe(true); … … 436 436 if (!this.commands[command]) { 437 437 // pass command to parent window 438 if (this. env.framed && parent.rcmail && parent.rcmail.command)438 if (this.is_framed()) 439 439 parent.rcmail.command(command, props); 440 440 … … 1121 1121 this.reload = function(delay) 1122 1122 { 1123 if (this. env.framed && parent.rcmail)1123 if (this.is_framed()) 1124 1124 parent.rcmail.reload(delay); 1125 1125 else if (delay) … … 1149 1149 return url + '?' + name + '=' + value; 1150 1150 }; 1151 1152 this.is_framed = function() 1153 { 1154 return (this.env.framed && parent.rcmail); 1155 }; 1156 1151 1157 1152 1158 /*********************************************************/ … … 1824 1830 else { 1825 1831 if (!this.env.frame_lock) { 1826 ( parent.rcmail? parent.rcmail : this).env.frame_lock = this.set_busy(true, 'loading');1832 (this.is_framed() ? parent.rcmail : this).env.frame_lock = this.set_busy(true, 'loading'); 1827 1833 } 1828 1834 target.location.href = this.env.comm_path+url; … … 4600 4606 { 4601 4607 // pass command to parent window 4602 if (this. env.framed && parent.rcmail)4608 if (this.is_framed()) 4603 4609 return parent.rcmail.display_message(msg, type); 4604 4610 … … 4648 4654 { 4649 4655 // pass command to parent window 4650 if (this. env.framed && parent.rcmail)4656 if (this.is_framed()) 4651 4657 return parent.rcmail.hide_message(obj, fade); 4652 4658
Note: See TracChangeset
for help on using the changeset viewer.
