Make et2 load application js, if present

This commit is contained in:
Nathan Gray 2013-02-05 14:38:16 +00:00
parent 50c8dd1c07
commit 534ea00418

View File

@ -154,6 +154,13 @@ class etemplate_new extends etemplate_widget_template
$theme = 'redmond'; $theme = 'redmond';
egw_framework::includeCSS("/phpgwapi/js/jquery/jquery-ui/$theme/jquery-ui-1.8.21.custom.css"); egw_framework::includeCSS("/phpgwapi/js/jquery/jquery-ui/$theme/jquery-ui-1.8.21.custom.css");
// check if application of template has a app.js file --> load it
list($app) = explode('.',$this->name);
if (file_exists(EGW_SERVER_ROOT.'/'.$app.'/js/app.js'))
{
egw_framework::validate_file('.','app',$app,false);
}
common::egw_header(); common::egw_header();
if ($output_mode != 2) if ($output_mode != 2)
{ {