Integration in files app to load scripts and styles on request

This commit is contained in:
Thomas Müller 2015-08-14 15:41:08 +02:00
parent 0b64268910
commit dfba425d68

View file

@ -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']);