diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-10-12 16:22:08 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-10-12 16:22:08 +0000 |
| commit | d1f23d7fee94674d108955de3a43225a3b0d65f2 (patch) | |
| tree | 6760e0ffda05b104dac52789cdbf7186a9b1a138 /roundcubemail/program/include | |
| parent | 875c86dd1efeba957b5d7d130e9195ded774241e (diff) | |
Support plugin commands on HTML pages, too
git-svn-id: https://svn.roundcube.net/trunk@5336 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include')
| -rwxr-xr-x | roundcubemail/program/include/rcube_template.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/roundcubemail/program/include/rcube_template.php b/roundcubemail/program/include/rcube_template.php index 043fcc64d..11c251ac5 100755 --- a/roundcubemail/program/include/rcube_template.php +++ b/roundcubemail/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; } |
