On May 28, 2009, at 8:01 PM, A.L.E.C wrote:
Thomas Bruederli wrote:
this.triggerEvent('http_response', response);
I've seen 'listupdate' event trigger there, so the idea was to replace it by something more unified for all actions.
It would be nice if we could use $OUTPUT->command() in plugins too. This would make it easy to either call core functions like $OUTPUT->command('move_messages', $junk_mbox) but also custom functions defined by the plugin itself.
I probably not understand, check managesieve plugin. There are e.g.:
$this->rc->output->command('managesieve_updatelist', 'down', '',
$fid);... and it's working. Of course in managesieve.js we have:
rcube_webmail.prototype.managesieve_updatelist = function(action,
name, id) {....
I think Thomas is trying to avoid having to add plugin functions to
rcube_webmail prototype.
It does work, and im using the same method right now, but it's kinda
ugly and not very
intuitive for plugin creators.
Cor _______________________________________________ List info: http://lists.roundcube.net/dev/