From 48158c8becff9bab6dd6b3d3cd7047aca1290dfd Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Wed, 22 Mar 2017 14:47:32 +0100 Subject: [PATCH] Combine additional files_sharing scripts Signed-off-by: Roeland Jago Douma --- apps/files_sharing/appinfo/app.php | 4 +--- apps/files_sharing/js/additionalScripts.json | 5 +++++ 2 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 apps/files_sharing/js/additionalScripts.json 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" +] -- 2.39.5