summaryrefslogtreecommitdiff
path: root/roundcubemail/program/js/app.js
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-10-01 08:29:58 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-10-01 08:29:58 +0000
commit762b28084f8d34aa48436d5d135f33b20fab9051 (patch)
tree14c6a19ecd96c8e0b10e81497d73eb96befad8c0 /roundcubemail/program/js/app.js
parentf72b1907d40aece81c1f21609880ba10cb40d1f4 (diff)
- Stop spellchecking when switching to html editor (#1485362)
git-svn-id: https://svn.roundcube.net/trunk@1904 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/js/app.js')
-rw-r--r--roundcubemail/program/js/app.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js
index 8ba00784f..bcc5e5071 100644
--- a/roundcubemail/program/js/app.js
+++ b/roundcubemail/program/js/app.js
@@ -1971,6 +1971,13 @@ function rcube_webmail()
this.display_spellcheck_controls = function(vis)
{
if (this.env.spellcheck) {
+ // stop spellchecking process
+ if (!vis && !this.spellcheck_ready)
+ {
+ exec_event(this.env.spellcheck.check_link, 'click');
+ this.set_spellcheck_state('ready');
+ }
+
this.env.spellcheck.check_link.style.visibility = vis ? 'visible' : 'hidden';
this.env.spellcheck.switch_lan_pic.style.visibility = vis ? 'visible' : 'hidden';
}