diff options
author | Julius Härtl <jus@bitgrid.net> | 2019-03-14 14:42:42 +0100 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2019-03-19 13:06:55 +0100 |
commit | e8fe00003b326867de480d919fdfe78ced9e7857 (patch) | |
tree | 4b69f488a3b1529e473a3f1448d32cbbfa6db32c /apps/files_sharing/appinfo | |
parent | 3022ef687a7bef87fc8eff7e29a68d8cf64542e9 (diff) | |
download | nextcloud-server-e8fe00003b326867de480d919fdfe78ced9e7857.tar.gz nextcloud-server-e8fe00003b326867de480d919fdfe78ced9e7857.zip |
Dispatch event to allow apps to load their script for collections
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/files_sharing/appinfo')
-rw-r--r-- | apps/files_sharing/appinfo/app.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/files_sharing/appinfo/app.php b/apps/files_sharing/appinfo/app.php index b50cc99dca7..747c2020746 100644 --- a/apps/files_sharing/appinfo/app.php +++ b/apps/files_sharing/appinfo/app.php @@ -45,6 +45,9 @@ $eventDispatcher->addListener( \OCP\Util::addScript('files_sharing', 'dist/additionalScripts'); } ); +\OC::$server->getEventDispatcher()->addListener('\OCP\Collaboration\Resources::loadAdditionalScripts', function () { + \OCP\Util::addScript('files_sharing', 'dist/collaboration'); +}); $config = \OC::$server->getConfig(); $shareManager = \OC::$server->getShareManager(); |