summaryrefslogtreecommitdiff
path: root/program/js/app.js
diff options
context:
space:
mode:
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';
}