summaryrefslogtreecommitdiff
path: root/program/js/app.js
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2006-05-25 18:25:04 +0000
committerthomascube <thomas@roundcube.net>2006-05-25 18:25:04 +0000
commited5d29f4b3c57235594931d33dde7cccaf7cd58b (patch)
treece9e2f54db0003ee9220913392213db99d5d04f6 /program/js/app.js
parent079bc8796dc53d2355311324dea9d57aad1c9e77 (diff)
Finalized GoogieSpell integration
Diffstat (limited to 'program/js/app.js')
-rw-r--r--program/js/app.js11
1 files changed, 10 insertions, 1 deletions
diff --git a/program/js/app.js b/program/js/app.js
index ae6b00f6a..98a30d330 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -142,7 +142,11 @@ function rcube_webmail()
}
if (this.env.action=='compose')
+ {
this.enable_command('add-attachment', 'send-attachment', 'send', true);
+ if (this.env.spellcheck)
+ this.enable_command('spellcheck', true);
+ }
if (this.env.messagecount)
this.enable_command('select-all', 'select-none', 'sort', 'expunge', true);
@@ -875,7 +879,12 @@ function rcube_webmail()
parent.location.href = url;
else
location.href = url;
- break;
+ break;
+
+ case 'spellcheck':
+ if (this.env.spellcheck && this.env.spellcheck.spellCheck)
+ this.env.spellcheck.spellCheck(this.env.spellcheck.check_link);
+ break;
case 'send':
if (!this.gui_objects.messageform)