]> git.sur5r.net Git - bacula/bacula/blobdiff - gui/baculum/framework/Web/Javascripts/TJavaScript.php
baculum: New Baculum API and Baculum Web
[bacula/bacula] / gui / baculum / framework / Web / Javascripts / TJavaScript.php
index d7703bfd3caa7da3c289ad04e5b23a9ca7e9f838..bd0f2be015541389ed251b230a759e2c8ab3b225 100644 (file)
@@ -3,9 +3,9 @@
  * TJavaScript class file
  *
  * @author Wei Zhuo<weizhuo[at]gmail[dot]com>
- * @link http://www.pradosoft.com/
- * @copyright Copyright &copy; 2005-2014 PradoSoft
- * @license http://www.pradosoft.com/license/
+ * @link https://github.com/pradosoft/prado
+ * @copyright Copyright &copy; 2005-2016 The PRADO Group
+ * @license https://github.com/pradosoft/prado/blob/master/COPYRIGHT
  * @package System.Web.Javascripts
  */
 
@@ -57,6 +57,19 @@ class TJavaScript
                        return '';
        }
 
+       /**
+        * Renders a list of javascript code
+        * @param array javascript blocks
+        * @return string rendering result
+        */
+       public static function renderScriptBlocksCallback($scripts)
+       {
+               if(count($scripts))
+                       return implode("\n",$scripts)."\n";
+               else
+                       return '';
+       }
+
        /**
         * Renders javascript block
         * @param string javascript block