Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/groupfolders.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2017-06-08 15:08:14 +0300
committerRobin Appelman <robin@icewind.nl>2017-06-08 15:09:32 +0300
commita33a869cc0ae980845005063d931a74d4db28348 (patch)
tree46579bc7395bf9a23fc0625ebe9de9c120a18875 /appinfo/app.php
parent01b02f3742a37380bf78f348a034ac5617318761 (diff)
only load js in the files app
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'appinfo/app.php')
-rw-r--r--appinfo/app.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/appinfo/app.php b/appinfo/app.php
index d1cdf5a3..008313d1 100644
--- a/appinfo/app.php
+++ b/appinfo/app.php
@@ -5,4 +5,10 @@ use OCA\GroupFolders\AppInfo\Application;
$app = new Application();
$app->register();
-\OC_Util::addScript('groupfolders', 'files');
+$eventDispatcher = \OC::$server->getEventDispatcher();
+$eventDispatcher->addListener(
+ 'OCA\Files::loadAdditionalScripts',
+ function() {
+ \OC_Util::addScript('groupfolders', 'files');
+ }
+);