From f4b8681160110659f5f78b309237de6f43c32537 Mon Sep 17 00:00:00 2001 From: alecpl <alec@alec.pl> Date: Wed, 01 Oct 2008 04:29:58 -0400 Subject: [PATCH] - Stop spellchecking when switching to html editor (#1485362) --- program/js/app.js | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/program/js/app.js b/program/js/app.js index 8ba0078..bcc5e50 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -1971,6 +1971,13 @@ 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'; } -- Gitblit v1.9.1