forked from extern/egroupware
Make et2 load application js, if present
This commit is contained in:
parent
50c8dd1c07
commit
534ea00418
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user