diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-10-17 06:42:12 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-10-17 06:42:12 +0000 |
| commit | 42745f96b67e85ce5f7b1195f0b7ecd22bc93d6b (patch) | |
| tree | 0dcdb4c43b233ea0255a3775ac83b995ba099e45 /roundcubemail/program/js | |
| parent | 93bb5e52c6b4e0871bbabc7c6e041526cd4fd74d (diff) | |
#1485506: close spellchecker before sending the message
git-svn-id: https://svn.roundcube.net/trunk@1984 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/js')
| -rw-r--r-- | roundcubemail/program/js/app.js | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js index bea1dc4af..fc99871b1 100644 --- a/roundcubemail/program/js/app.js +++ b/roundcubemail/program/js/app.js @@ -1989,23 +1989,31 @@ function rcube_webmail() return false; } + // Apply spellcheck changes if spell checker is active + this.stop_spellchecking(); + return true; }; + this.stop_spellchecking = function() + { + if (this.env.spellcheck && !this.spellcheck_ready) { + exec_event(this.env.spellcheck.check_link, 'click'); + this.set_spellcheck_state('ready'); + } + }; + 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.stop_spellchecking(); this.env.spellcheck.check_link.style.visibility = vis ? 'visible' : 'hidden'; this.env.spellcheck.switch_lan_pic.style.visibility = vis ? 'visible' : 'hidden'; - } - }; + } + }; this.set_spellcheck_state = function(s) { |
