summaryrefslogtreecommitdiff
path: root/roundcubemail/program/js/app.js
diff options
context:
space:
mode:
authorthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2009-05-01 16:58:25 +0000
committerthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2009-05-01 16:58:25 +0000
commit65b6067e1391930b0825c445d4a498cf622745ca (patch)
tree59789a8bd93c0ce410803983db341776e116aaef /roundcubemail/program/js/app.js
parentddd35965f4010adf48b781493d1e6a6dcbf07132 (diff)
Update Googiespell to version 4.0
git-svn-id: https://svn.roundcube.net/trunk@2439 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/js/app.js')
-rw-r--r--roundcubemail/program/js/app.js9
1 files changed, 4 insertions, 5 deletions
diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js
index 443c0f370..40979094a 100644
--- a/roundcubemail/program/js/app.js
+++ b/roundcubemail/program/js/app.js
@@ -902,8 +902,7 @@ function rcube_webmail()
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 @@ function rcube_webmail()
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 @@ function rcube_webmail()
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);
};