diff options
author | thomascube <thomas@roundcube.net> | 2009-06-01 15:35:53 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2009-06-01 15:35:53 +0000 |
commit | 0e99d37a18cf81b549b8fc7e8948e9bd338deaad (patch) | |
tree | c7b0f67ce397d82314aa33f5c022ca40554eb3c4 /program/js/app.js | |
parent | 0ce119869d77215665be6850099cc229b5720963 (diff) |
Use event system on the client to handle ajax callbacks
Diffstat (limited to 'program/js/app.js')
-rw-r--r-- | program/js/app.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/program/js/app.js b/program/js/app.js index 5e323e229..4f12e808a 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -3923,6 +3923,12 @@ function rcube_webmail() console.log(response.exec); 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) { |