From 6e843cfdd0cf339e95a03bb5bd9dea85db0ff277 Mon Sep 17 00:00:00 2001 From: wangchunsheng Date: Mon, 7 Mar 2011 09:02:58 +0000 Subject: [PATCH] + add execute method. --- lib/front/front.class.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/lib/front/front.class.php b/lib/front/front.class.php index 8f9dfe6848..e704037363 100644 --- a/lib/front/front.class.php +++ b/lib/front/front.class.php @@ -751,6 +751,22 @@ EOT; $js .= self::end(); echo $js; } + + /** + * Execute some js code. + * + * @param string $code + * @static + * @access public + * @return string + */ + static public function execute($code) + { + $js = self::start(); + $js .= $code; + $js .= self::end(); + echo $js; + } } /**