From f6638364b1dfb6e1e16fe140df7091af67b56bc3 Mon Sep 17 00:00:00 2001
From: thomascube <thomas@roundcube.net>
Date: Wed, 12 Oct 2011 12:22:08 -0400
Subject: [PATCH] Support plugin commands on HTML pages, too
---
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 043fcc6..11c251a 100755
--- a/program/include/rcube_template.php
+++ b/program/include/rcube_template.php
@@ -217,7 +217,9 @@
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;
}
--
Gitblit v1.9.1