importing the app.css file of the edited template

This commit is contained in:
Ralf Becker 2005-04-14 22:08:25 +00:00
parent e047da872f
commit 3a479fd54c

View File

@ -973,6 +973,10 @@
window.open(url,"etemplate_editor_widget","dependent=yes,width=600,height=450,location=no,menubar=no,toolbar=no,scrollbars=yes,status=yes");
}
</script>';
if ($app != 'etemplate' && file_exists(PHPGW_SERVER_ROOT.'/'.$app.'/templates/default/app.css'))
{
$new_content['onclick'] .= $editor->html->style('@import url('.$GLOBALS['phpgw_info']['server']['webserver_url'].'/'.$app.'/templates/default/app.css);');
}
$editor->data[$editor->rows]['A']['obj'] = &$this->etemplate;
$vals = $content['vals'];
$olds = $content['olds'];