summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2017-03-22 14:47:32 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2017-03-24 10:58:11 +0100
commit48158c8becff9bab6dd6b3d3cd7047aca1290dfd (patch)
treef05abd7e1b268e5262ade6c3e0eac55221a7aa05 /apps
parent8e89ad21a2dfa8f4f147225ae35cab83db4de2f9 (diff)
downloadnextcloud-server-48158c8becff9bab6dd6b3d3cd7047aca1290dfd.tar.gz
nextcloud-server-48158c8becff9bab6dd6b3d3cd7047aca1290dfd.zip
Combine additional files_sharing scripts
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps')
-rw-r--r--apps/files_sharing/appinfo/app.php4
-rw-r--r--apps/files_sharing/js/additionalScripts.json5
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"
+]