summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-08-14 15:41:08 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2015-08-14 18:04:17 +0200
commitdfba425d68f350ec8b7d7aebc8746b98476fb5fc (patch)
tree89ec28b16e13a778573461c6f28c49860606a9d5 /apps
parent0b64268910a0fc681f1b2b6a154e08af2818b379 (diff)
downloadnextcloud-server-dfba425d68f350ec8b7d7aebc8746b98476fb5fc.tar.gz
nextcloud-server-dfba425d68f350ec8b7d7aebc8746b98476fb5fc.zip
Integration in files app to load scripts and styles on request
Diffstat (limited to 'apps')
-rw-r--r--apps/files/index.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/files/index.php b/apps/files/index.php
index beae585cea4..a73caa50fbe 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']);