From f6638364b1dfb6e1e16fe140df7091af67b56bc3 Mon Sep 17 00:00:00 2001 From: thomascube Date: Wed, 12 Oct 2011 16:22:08 +0000 Subject: Support plugin commands on HTML pages, too --- program/include/rcube_template.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } -- cgit v1.2.3