From ffa6c1011c2330c19038482aa7256790f5539380 Mon Sep 17 00:00:00 2001 From: thomascube <thomas@roundcube.net> Date: Fri, 01 May 2009 12:58:25 -0400 Subject: [PATCH] Update Googiespell to version 4.0 --- program/js/app.js | 9 ++++----- 1 files changed, 4 insertions(+), 5 deletions(-) diff --git a/program/js/app.js b/program/js/app.js index 443c0f3..4097909 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -902,8 +902,7 @@ tinyMCE.execCommand('mceSpellCheck', true); } else if (this.env.spellcheck && this.env.spellcheck.spellCheck && this.spellcheck_ready) { - this.env.spellcheck.spellCheck(this.env.spellcheck.check_link); - this.set_spellcheck_state('checking'); + this.env.spellcheck.spellCheck(); } break; @@ -2123,8 +2122,8 @@ if (this.env.spellcheck) { // stop spellchecking process if (!vis) - this.stop_spellchecking(); - + this.stop_spellchecking(); + this.env.spellcheck.check_link.style.visibility = vis ? 'visible' : 'hidden'; this.env.spellcheck.switch_lan_pic.style.visibility = vis ? 'visible' : 'hidden'; } @@ -2132,7 +2131,7 @@ this.set_spellcheck_state = function(s) { - this.spellcheck_ready = (s=='check_spelling' || s=='ready'); + this.spellcheck_ready = (s=='check_spelling' || s=='spell_check' || s=='ready'); this.enable_command('spellcheck', this.spellcheck_ready); }; -- Gitblit v1.9.1