From dfba425d68f350ec8b7d7aebc8746b98476fb5fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20M=C3=BCller?= Date: Fri, 14 Aug 2015 15:41:08 +0200 Subject: [PATCH] Integration in files app to load scripts and styles on request --- apps/files/index.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/files/index.php b/apps/files/index.php index beae585cea..a73caa50fb 100644 --- a/apps/files/index.php +++ b/apps/files/index.php @@ -143,6 +143,9 @@ OCP\Util::addscript('files', 'fileactionsmenu'); OCP\Util::addscript('files', 'files'); OCP\Util::addscript('files', 'navigation'); OCP\Util::addscript('files', 'keyboardshortcuts'); + +\OC::$server->getEventDispatcher()->dispatch('OCA\Files::loadAdditionalScripts'); + $tmpl = new OCP\Template('files', 'index', 'user'); $tmpl->assign('usedSpacePercent', (int)$storageInfo['relative']); $tmpl->assign('owner', $storageInfo['owner']);