mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 00:13:35 +01:00
Allow apps to load JavaScript or CSS files, knowing we're loading the framework or not
This commit is contained in:
parent
7843da6e08
commit
f479314e06
@ -253,6 +253,12 @@ abstract class Ajax extends Api\Framework
|
|||||||
$extra['check-framework'] = $_GET['cd'] !== 'no';
|
$extra['check-framework'] = $_GET['cd'] !== 'no';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// allow apps to load JavaScript or CSS files, knowing we're loading the framework or not
|
||||||
|
Api\Hooks::process(array(
|
||||||
|
'location' => 'framework_header',
|
||||||
|
'popup' => !$do_framework,
|
||||||
|
));
|
||||||
|
|
||||||
$this->tpl->set_var($this->_get_header($extra));
|
$this->tpl->set_var($this->_get_header($extra));
|
||||||
$content = $this->tpl->fp('out','head').$content;
|
$content = $this->tpl->fp('out','head').$content;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user