summaryrefslogtreecommitdiff
path: root/program/js/app.js
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2008-10-01 08:29:58 +0000
committeralecpl <alec@alec.pl>2008-10-01 08:29:58 +0000
commitf4b8681160110659f5f78b309237de6f43c32537 (patch)
tree827c92e75f9c0c11385c1924817c136dda16d733 /program/js/app.js
parentef925ffe08cf221f1415fb8405ad4fb229172139 (diff)
- Stop spellchecking when switching to html editor (#1485362)
Diffstat (limited to 'program/js/app.js')
-rw-r--r--program/js/app.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/program/js/app.js b/program/js/app.js
index 8ba00784f..bcc5e5071 100644
--- a/program/js/app.js
+++ b/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';
}