diff options
author | thomascube <thomas@roundcube.net> | 2011-10-12 16:22:08 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2011-10-12 16:22:08 +0000 |
commit | f6638364b1dfb6e1e16fe140df7091af67b56bc3 (patch) | |
tree | 7f7413a43ce62c2e8f6c2556c0854d969a74bbc7 /program | |
parent | 4b09fb6ce6564e901da0f9e9353af5224c8a6014 (diff) |
Support plugin commands on HTML pages, too
Diffstat (limited to 'program')
-rwxr-xr-x | program/include/rcube_template.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/program/include/rcube_template.php b/program/include/rcube_template.php index 043fcc64d..11c251ac5 100755 --- a/program/include/rcube_template.php +++ b/program/include/rcube_template.php @@ -217,7 +217,9 @@ class rcube_template extends rcube_html_page public function command() { $cmd = func_get_args(); - if (strpos($cmd[0], 'plugin.') === false) + if (strpos($cmd[0], 'plugin.') !== false) + $this->js_commands[] = array('triggerEvent', $cmd[0], $cmd[1]); + else $this->js_commands[] = $cmd; } |