summaryrefslogtreecommitdiff
path: root/roundcubemail/program
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-05-25 07:11:49 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-05-25 07:11:49 +0000
commitac9589e944c273bcc0241fe5f365e6b5a1ea60a7 (patch)
treec29c9dec8c4d913440c90606cd0def9cad55571f /roundcubemail/program
parentbc3d7575952b5b38f05892c8c213faa6ba32d8d9 (diff)
- Reverted change that removed response.callbacks
git-svn-id: https://svn.roundcube.net/trunk@3659 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program')
-rw-r--r--roundcubemail/program/js/app.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js
index 9554eb532..74653e49c 100644
--- a/roundcubemail/program/js/app.js
+++ b/roundcubemail/program/js/app.js
@@ -4931,6 +4931,11 @@ function rcube_webmail()
eval(response.exec);
}
+ // execute callback functions of plugins
+ if (response.callbacks && response.callbacks.length) {
+ for (var i=0; i < response.callbacks.length; i++)
+ this.triggerEvent(response.callbacks[i][0], response.callbacks[i][1]);
+
// process the response data according to the sent action
switch (response.action) {
case 'delete':
@@ -4955,8 +4960,8 @@ function rcube_webmail()
if (this.env.contentframe)
this.show_contentframe(false);
// disable commands useless when mailbox is empty
- this.enable_command('show', 'reply', 'reply-all', 'forward', 'moveto', 'copy', 'delete',
- 'mark', 'viewsource', 'open', 'edit', 'download', 'print', 'load-attachment',
+ this.enable_command('show', 'reply', 'reply-all', 'forward', 'moveto', 'copy', 'delete',
+ 'mark', 'viewsource', 'open', 'edit', 'download', 'print', 'load-attachment',
'purge', 'expunge', 'select-all', 'select-none', 'sort',
'expand-all', 'expand-unread', 'collapse-all', false);
}