From 1617dbb6a45ccd1fa6fc74ab6c47026804c7a1e0 Mon Sep 17 00:00:00 2001 From: alecpl Date: Tue, 23 Feb 2010 17:22:39 +0000 Subject: - Fix IE spellcheck suggestion popup issue (#1486471) --- program/js/googiespell.js | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) (limited to 'program/js/googiespell.js') diff --git a/program/js/googiespell.js b/program/js/googiespell.js index abd3462ec..5f201b7a1 100644 --- a/program/js/googiespell.js +++ b/program/js/googiespell.js @@ -80,7 +80,7 @@ function GoogieSpell(img_dir, server_url) { 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(); @@ -122,7 +122,6 @@ this.decorateTextarea = function(id) { ///// this.setSpellContainer = function(id) { this.spell_container = typeof(id) == 'string' ? document.getElementById(id) : id; - } this.setLanguages = function(lang_dict) { @@ -225,7 +224,7 @@ this.spellCheck = function(ignore) { this.removeIndicator(); return; } - + this.createEditLayer(this.text_area.offsetWidth, this.text_area.offsetHeight); this.createErrorWindow(); $('body').append(this.error_window); @@ -309,6 +308,7 @@ this.parseResult = function(r_text) { } results.push(item); } + return results; } @@ -402,13 +402,11 @@ this.showErrorWindow = function(elm, id) { //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').css('position', 'absolute').css('z-index', 0); + var iframe = $('