| | |
| | | this.init_buttons(); |
| | | |
| | | // tell parent window that this frame is loaded |
| | | if (this.env.framed && parent.rcmail && parent.rcmail.set_busy) { |
| | | if (this.is_framed()) { |
| | | parent.rcmail.set_busy(false, null, parent.rcmail.env.frame_lock); |
| | | parent.rcmail.env.frame_lock = null; |
| | | } |
| | |
| | | } |
| | | |
| | | // make preview/message frame visible |
| | | if (this.env.action == 'preview' && this.env.framed && parent.rcmail) { |
| | | if (this.env.action == 'preview' && this.is_framed()) { |
| | | this.enable_command('compose', 'add-contact', false); |
| | | parent.rcmail.show_contentframe(true); |
| | | } |
| | |
| | | // command not supported or allowed |
| | | if (!this.commands[command]) { |
| | | // pass command to parent window |
| | | if (this.env.framed && parent.rcmail && parent.rcmail.command) |
| | | if (this.is_framed()) |
| | | parent.rcmail.command(command, props); |
| | | |
| | | return false; |
| | |
| | | |
| | | this.reload = function(delay) |
| | | { |
| | | if (this.env.framed && parent.rcmail) |
| | | if (this.is_framed()) |
| | | parent.rcmail.reload(delay); |
| | | else if (delay) |
| | | window.setTimeout(function(){ rcmail.reload(); }, delay); |
| | |
| | | else |
| | | return url + '?' + name + '=' + value; |
| | | }; |
| | | |
| | | this.is_framed = function() |
| | | { |
| | | return (this.env.framed && parent.rcmail); |
| | | }; |
| | | |
| | | |
| | | /*********************************************************/ |
| | | /********* event handling methods *********/ |
| | |
| | | this.show_contentframe(true); |
| | | else { |
| | | if (!this.env.frame_lock) { |
| | | (parent.rcmail ? parent.rcmail : this).env.frame_lock = this.set_busy(true, 'loading'); |
| | | (this.is_framed() ? parent.rcmail : this).env.frame_lock = this.set_busy(true, 'loading'); |
| | | } |
| | | target.location.href = this.env.comm_path+url; |
| | | |
| | |
| | | this.display_message = function(msg, type) |
| | | { |
| | | // pass command to parent window |
| | | if (this.env.framed && parent.rcmail) |
| | | if (this.is_framed()) |
| | | return parent.rcmail.display_message(msg, type); |
| | | |
| | | if (!this.gui_objects.message) { |
| | |
| | | this.hide_message = function(obj, fade) |
| | | { |
| | | // pass command to parent window |
| | | if (this.env.framed && parent.rcmail) |
| | | if (this.is_framed()) |
| | | return parent.rcmail.hide_message(obj, fade); |
| | | |
| | | if (typeof(obj) == 'object') { |