| | |
| | | this.cnt_errors = 0; |
| | | this.cnt_errors_fixed = 0; |
| | | |
| | | //Set document on click to hide the language and error menu |
| | | //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()) |
| | | ref.hideLangWindow(); |
| | |
| | | ///// |
| | | this.setSpellContainer = function(id) { |
| | | this.spell_container = typeof(id) == 'string' ? document.getElementById(id) : id; |
| | | |
| | | } |
| | | |
| | | this.setLanguages = function(lang_dict) { |
| | |
| | | } |
| | | results.push(item); |
| | | } |
| | | |
| | | return results; |
| | | } |
| | | |
| | |
| | | |
| | | //Check if we should use custom menu builder, if not we use the default |
| | | var changed = false; |
| | | if (this.custom_menu_builder != []) { |
| | | for (var k=0; k<this.custom_menu_builder.length; k++) { |
| | | var eb = this.custom_menu_builder[k]; |
| | | if(eb[0]((this.results[id]))){ |
| | | changed = eb[1](this, list, elm); |
| | | break; |
| | | } |
| | | } |
| | | } |
| | | if (!changed) { |
| | |
| | | //Dummy for IE - dropdown bug fix |
| | | if ($.browser.msie) { |
| | | if (!this.error_window_iframe) { |
| | | var iframe = $('<iframe>').css('position', 'absolute').css('z-index', 0); |
| | | var iframe = $('<iframe>').css({'position': 'absolute', 'z-index': -1}); |
| | | $('body').append(iframe); |
| | | this.error_window_iframe = iframe; |
| | | } |