Include jQuery-UI CSS for all

This commit is contained in:
Nathan Gray 2012-03-19 19:52:35 +00:00
parent 1257ab5e7c
commit abe44d99c7

View File

@ -105,6 +105,10 @@ class etemplate_new extends etemplate_widget_template
// Include the etemplate2 javascript code
egw_framework::validate_file('.', 'etemplate2', 'etemplate');
// Include the jQuery-UI CSS - many more complex widgets use it
$theme = 'smoothness';
egw_framework::includeCSS("/phpgwapi/js/jquery/jquery-ui/$theme/jquery-ui-1.8.16.custom.css");
if (!$this->rel_path) throw new egw_exception_assertion_failed('No (valid) template read!');
// generate new etemplate request object