]> source.dussan.org Git - nextcloud-server.git/commitdiff
Merge JS for comments 4039/head
authorLukas Reschke <lukas@statuscode.ch>
Fri, 24 Mar 2017 18:49:43 +0000 (19:49 +0100)
committerLukas Reschke <lukas@statuscode.ch>
Fri, 24 Mar 2017 18:49:43 +0000 (19:49 +0100)
Shaves off 6 requests.

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
apps/comments/appinfo/app.php
apps/comments/js/merged.json [new file with mode: 0644]

index 144a4506d380e460bd999d9754d62e823b4640a2..067e01e47ef780b718e4768d2576084f02f4b70d 100644 (file)
@@ -26,13 +26,7 @@ $eventDispatcher->addListener(
        'OCA\Files::loadAdditionalScripts',
        function() {
                \OCP\Util::addScript('oc-backbone-webdav');
-               \OCP\Util::addScript('comments', 'app');
-               \OCP\Util::addScript('comments', 'commentmodel');
-               \OCP\Util::addScript('comments', 'commentcollection');
-               \OCP\Util::addScript('comments', 'commentsummarymodel');
-               \OCP\Util::addScript('comments', 'commentstabview');
-               \OCP\Util::addScript('comments', 'filesplugin');
-               \OCP\Util::addScript('comments', 'activitytabviewplugin');
+               \OCP\Util::addScript('comments', 'merged');
                \OCP\Util::addStyle('comments', 'comments');
        }
 );
diff --git a/apps/comments/js/merged.json b/apps/comments/js/merged.json
new file mode 100644 (file)
index 0000000..66a63e8
--- /dev/null
@@ -0,0 +1,9 @@
+[
+  "app.js",
+  "commentmodel.js",
+  "commentcollection.js",
+  "commentsummarymodel.js",
+  "commentstabview.js",
+  "filesplugin.js",
+  "activitytabviewplugin.js"
+]