]> source.dussan.org Git - nextcloud-server.git/commitdiff
Combine additional files_sharing scripts
authorRoeland Jago Douma <roeland@famdouma.nl>
Wed, 22 Mar 2017 13:47:32 +0000 (14:47 +0100)
committerRoeland Jago Douma <roeland@famdouma.nl>
Fri, 24 Mar 2017 09:58:11 +0000 (10:58 +0100)
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
apps/files_sharing/appinfo/app.php
apps/files_sharing/js/additionalScripts.json [new file with mode: 0644]

index fdaf3d1ec6ca56291515580d865a848260614fa3..9a06f40abf5a42d374c8932c4dc072d879f5caa1 100644 (file)
@@ -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 (file)
index 0000000..81f3e9f
--- /dev/null
@@ -0,0 +1,5 @@
+[
+       "share.js",
+       "sharetabview.js",
+       "sharebreadcrumbview.js"
+]