| | |
| | | |
| | | this.show_spell_img = false; // roundcube mod. |
| | | this.decoration = true; |
| | | this.use_close_btn = true; |
| | | this.use_close_btn = false; |
| | | this.edit_layer_dbl_click = true; |
| | | this.report_ta_not_found = true; |
| | | |
| | |
| | | |
| | | // Set document's onclick to hide the language and error menu |
| | | $(document).bind('click', function(e) { |
| | | if($(e.target).attr('googie_action_btn') != '1' && ref.isLangWindowShown()) |
| | | var target = $(e.target); |
| | | if(target.attr('googie_action_btn') != '1' && ref.isLangWindowShown()) |
| | | ref.hideLangWindow(); |
| | | if($(e.target).attr('googie_action_btn') != '1' && ref.isErrorWindowShown()) |
| | | if(target.attr('googie_action_btn') != '1' && ref.isErrorWindowShown()) |
| | | ref.hideErrorWindow(); |
| | | }); |
| | | |
| | |
| | | ///// |
| | | this.createErrorWindow = function() { |
| | | this.error_window = document.createElement('div'); |
| | | $(this.error_window).addClass('googie_window').attr('googie_action_btn', '1'); |
| | | $(this.error_window).addClass('googie_window popupmenu').attr('googie_action_btn', '1'); |
| | | }; |
| | | |
| | | this.isErrorWindowShown = function() { |
| | |
| | | }; |
| | | |
| | | this.hideErrorWindow = function() { |
| | | $(this.error_window).css('visibility', 'hidden'); |
| | | $(this.error_window_iframe).css('visibility', 'hidden'); |
| | | $(this.error_window).hide(); |
| | | $(this.error_window_iframe).hide(); |
| | | }; |
| | | |
| | | this.updateOrginalText = function(offset, old_value, new_value, id) { |
| | |
| | | top = pos.top + height + 20 < pageheight ? pos.top + 20 : pos.top - height, |
| | | left = pos.left + width < pagewidth ? pos.left : pos.left - width; |
| | | |
| | | $(this.error_window).css({'visibility': 'visible', 'top': top+'px', 'left': left+'px'}); |
| | | $(this.error_window).css({'top': top+'px', 'left': left+'px'}).show(); |
| | | |
| | | // Dummy for IE - dropdown bug fix |
| | | if ($.browser.msie) { |
| | |
| | | this.error_window_iframe = iframe; |
| | | } |
| | | |
| | | $(this.error_window_iframe).css({'visibility': 'visible', |
| | | 'top': this.error_window.offsetTop, 'left': this.error_window.offsetLeft, |
| | | 'width': this.error_window.offsetWidth, 'height': this.error_window.offsetHeight}); |
| | | $(this.error_window_iframe) |
| | | .css({'top': this.error_window.offsetTop, 'left': this.error_window.offsetLeft, |
| | | 'width': this.error_window.offsetWidth, 'height': this.error_window.offsetHeight}) |
| | | .show(); |
| | | } |
| | | }; |
| | | |
| | |
| | | } |
| | | |
| | | var ref = this; |
| | | |
| | | if (this.edit_layer_dbl_click) { |
| | | $(this.edit_layer).bind('click', function(e) { |
| | | $(this.edit_layer).dblclick(function(e) { |
| | | if (e.target.className != 'googie_link' && !ref.isErrorWindowShown()) { |
| | | ref.resumeEditing(); |
| | | var fn1 = function() { |
| | |
| | | ////// |
| | | this.createLangWindow = function() { |
| | | this.language_window = document.createElement('div'); |
| | | $(this.language_window).addClass('googie_window') |
| | | $(this.language_window).addClass('googie_window popupmenu') |
| | | .width(100).attr('googie_action_btn', '1'); |
| | | |
| | | // Build up the result list |
| | |
| | | }; |
| | | |
| | | this.isLangWindowShown = function() { |
| | | return $(this.language_window).is(':hidden'); |
| | | return $(this.language_window).is(':visible'); |
| | | }; |
| | | |
| | | this.hideLangWindow = function() { |
| | | $(this.language_window).css('visibility', 'hidden'); |
| | | $(this.language_window).hide(); |
| | | $(this.switch_lan_pic).removeClass().addClass('googie_lang_3d_on'); |
| | | }; |
| | | |
| | |
| | | pos.left - 100 + width : pos.left + width, |
| | | top = pos.top + h < pageheight ? pos.top + height : pos.top - h - 4; |
| | | |
| | | $(this.language_window).css({'visibility': 'visible', 'top' : top+'px','left' : left+'px'}); |
| | | $(this.language_window).css({'top' : top+'px','left' : left+'px'}).show(); |
| | | |
| | | this.highlightCurSel(); |
| | | }; |
| | |
| | | //$(this.indicator).remove(); |
| | | // roundcube mod. |
| | | if (window.rcmail) |
| | | rcmail.set_busy(false); |
| | | rcmail.set_busy(false, null, this.rc_msg_id); |
| | | }; |
| | | |
| | | this.appendIndicator = function(elm) { |
| | | // modified by roundcube |
| | | if (window.rcmail) |
| | | rcmail.set_busy(true, 'checking'); |
| | | this.rc_msg_id = rcmail.set_busy(true, 'checking'); |
| | | /* |
| | | this.indicator = document.createElement('img'); |
| | | $(this.indicator).attr('src', this.img_dir + 'indicator.gif') |