summaryrefslogtreecommitdiff
path: root/program/js/app.js
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2009-05-01 19:27:36 +0000
committeralecpl <alec@alec.pl>2009-05-01 19:27:36 +0000
commit309d2f40a037a158db596068b7fb6799f94018c2 (patch)
tree98a1221b50cca406e84166c196bd60cc6439c63f /program/js/app.js
parent169249982db0d93e1a0a26ca4c91fc8bf3018f58 (diff)
- jQuery'fied GoogieSpell 4.0 + some changes in compose
Diffstat (limited to 'program/js/app.js')
-rw-r--r--program/js/app.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/program/js/app.js b/program/js/app.js
index 40979094a..8ac0e7256 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -903,6 +903,7 @@ function rcube_webmail()
}
else if (this.env.spellcheck && this.env.spellcheck.spellCheck && this.spellcheck_ready) {
this.env.spellcheck.spellCheck();
+ this.set_spellcheck_state('checking');
}
break;
@@ -2112,7 +2113,7 @@ function rcube_webmail()
this.stop_spellchecking = function()
{
if (this.env.spellcheck && !this.spellcheck_ready) {
- exec_event(this.env.spellcheck.check_link, 'click');
+ $(this.env.spellcheck.spell_span).trigger('click');
this.set_spellcheck_state('ready');
}
};
@@ -2122,16 +2123,15 @@ function rcube_webmail()
if (this.env.spellcheck) {
// stop spellchecking process
if (!vis)
- this.stop_spellchecking();
+ 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.env.spellcheck.spell_container).css('visibility', vis ? 'visible' : 'hidden');
}
};
this.set_spellcheck_state = function(s)
{
- this.spellcheck_ready = (s=='check_spelling' || s=='spell_check' || s=='ready');
+ this.spellcheck_ready = (s == 'ready' || s == 'no_error_found');
this.enable_command('spellcheck', this.spellcheck_ready);
};