- Fix IE spellcheck suggestion popup issue (#1486471)

release-0.6
alecpl 15 years ago
parent 3e7c3694ef
commit 1617dbb6a4

@ -1,6 +1,7 @@
CHANGELOG RoundCube Webmail CHANGELOG RoundCube Webmail
=========================== ===========================
- Fix IE spellcheck suggestion popup issue (#1486471)
- Fix email address auto-completion shows regexp pattern (#1486258) - Fix email address auto-completion shows regexp pattern (#1486258)
- Fix merging of configuration parameters: user prefs always survive (#1486368) - Fix merging of configuration parameters: user prefs always survive (#1486368)
- Fix quota indicator value after folder purge/expunge (#1486488) - Fix quota indicator value after folder purge/expunge (#1486488)

@ -80,7 +80,7 @@ function GoogieSpell(img_dir, server_url) {
this.cnt_errors = 0; this.cnt_errors = 0;
this.cnt_errors_fixed = 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) { $(document).bind('click', function(e) {
if($(e.target).attr('googie_action_btn') != '1' && ref.isLangWindowShown()) if($(e.target).attr('googie_action_btn') != '1' && ref.isLangWindowShown())
ref.hideLangWindow(); ref.hideLangWindow();
@ -122,7 +122,6 @@ this.decorateTextarea = function(id) {
///// /////
this.setSpellContainer = function(id) { this.setSpellContainer = function(id) {
this.spell_container = typeof(id) == 'string' ? document.getElementById(id) : id; this.spell_container = typeof(id) == 'string' ? document.getElementById(id) : id;
} }
this.setLanguages = function(lang_dict) { this.setLanguages = function(lang_dict) {
@ -309,6 +308,7 @@ this.parseResult = function(r_text) {
} }
results.push(item); results.push(item);
} }
return results; return results;
} }
@ -402,7 +402,6 @@ this.showErrorWindow = function(elm, id) {
//Check if we should use custom menu builder, if not we use the default //Check if we should use custom menu builder, if not we use the default
var changed = false; var changed = false;
if (this.custom_menu_builder != []) {
for (var k=0; k<this.custom_menu_builder.length; k++) { for (var k=0; k<this.custom_menu_builder.length; k++) {
var eb = this.custom_menu_builder[k]; var eb = this.custom_menu_builder[k];
if(eb[0]((this.results[id]))){ if(eb[0]((this.results[id]))){
@ -410,7 +409,6 @@ this.showErrorWindow = function(elm, id) {
break; break;
} }
} }
}
if (!changed) { if (!changed) {
//Build up the result list //Build up the result list
var suggestions = this.results[id]['suggestions']; var suggestions = this.results[id]['suggestions'];
@ -545,7 +543,7 @@ this.showErrorWindow = function(elm, id) {
//Dummy for IE - dropdown bug fix //Dummy for IE - dropdown bug fix
if ($.browser.msie) { if ($.browser.msie) {
if (!this.error_window_iframe) { 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); $('body').append(iframe);
this.error_window_iframe = iframe; this.error_window_iframe = iframe;
} }

Loading…
Cancel
Save