From 762b28084f8d34aa48436d5d135f33b20fab9051 Mon Sep 17 00:00:00 2001 From: alec Date: Wed, 1 Oct 2008 08:29:58 +0000 Subject: - Stop spellchecking when switching to html editor (#1485362) git-svn-id: https://svn.roundcube.net/trunk@1904 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/program/js/app.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'roundcubemail/program/js/app.js') 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'; } -- cgit v1.2.3