diff options
-rw-r--r-- | apps/files_sharing/appinfo/app.php | 4 | ||||
-rw-r--r-- | apps/files_sharing/js/additionalScripts.json | 5 |
2 files changed, 6 insertions, 3 deletions
diff --git a/apps/files_sharing/appinfo/app.php b/apps/files_sharing/appinfo/app.php index fdaf3d1ec6c..9a06f40abf5 100644 --- a/apps/files_sharing/appinfo/app.php +++ b/apps/files_sharing/appinfo/app.php @@ -38,10 +38,8 @@ $eventDispatcher = \OC::$server->getEventDispatcher(); $eventDispatcher->addListener( 'OCA\Files::loadAdditionalScripts', function() { - \OCP\Util::addScript('files_sharing', 'share'); - \OCP\Util::addScript('files_sharing', 'sharetabview'); - \OCP\Util::addScript('files_sharing', 'sharebreadcrumbview'); \OCP\Util::addStyle('files_sharing', 'mergedAdditionalStyles'); + \OCP\Util::addScript('files_sharing', 'additionalScripts'); } ); diff --git a/apps/files_sharing/js/additionalScripts.json b/apps/files_sharing/js/additionalScripts.json new file mode 100644 index 00000000000..81f3e9f3cab --- /dev/null +++ b/apps/files_sharing/js/additionalScripts.json @@ -0,0 +1,5 @@ +[ + "share.js", + "sharetabview.js", + "sharebreadcrumbview.js" +] |