From 50067d581aefcef12cd5ce1cde4812e9bc2c88c5 Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Tue, 25 May 2010 03:11:49 -0400
Subject: [PATCH] - Reverted change that removed response.callbacks
---
program/js/app.js | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/program/js/app.js b/program/js/app.js
index 9554eb5..74653e4 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -4931,6 +4931,11 @@
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 @@
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);
}
--
Gitblit v1.9.1