mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Only load required scripts on install page
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
02f898fa07
commit
5a574737ad
1 changed files with 10 additions and 8 deletions
|
|
@ -109,16 +109,18 @@ class OC_Template extends \OC\Template\Base {
|
|||
OC_Util::addScript ( 'backgroundjobs', null, true );
|
||||
}
|
||||
}
|
||||
|
||||
OC_Util::addStyle('css-variables', null, true);
|
||||
OC_Util::addStyle('server', null, true);
|
||||
OC_Util::addTranslations("core", null, true);
|
||||
OC_Util::addStyle('search', 'results');
|
||||
OC_Util::addScript('search', 'search', true);
|
||||
OC_Util::addScript('search', 'searchprovider');
|
||||
OC_Util::addScript('merged-template-prepend', null, true);
|
||||
OC_Util::addScript('files/fileinfo');
|
||||
OC_Util::addScript('files/client');
|
||||
OC_Util::addTranslations('core', null, true);
|
||||
|
||||
if (\OC::$server->getSystemConfig()->getValue ('installed', false)) {
|
||||
OC_Util::addStyle('search', 'results');
|
||||
OC_Util::addScript('search', 'search', true);
|
||||
OC_Util::addScript('search', 'searchprovider');
|
||||
OC_Util::addScript('merged-template-prepend', null, true);
|
||||
OC_Util::addScript('files/fileinfo');
|
||||
OC_Util::addScript('files/client');
|
||||
}
|
||||
OC_Util::addScript('core', 'dist/main', true);
|
||||
|
||||
if (\OC::$server->getRequest()->isUserAgent([\OC\AppFramework\Http\Request::USER_AGENT_IE])) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue