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

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

diff --git a/apps/files_versions/js/merged.json b/apps/files_versions/js/merged.json
new file mode 100644 (file)
index 0000000..1a7fbad
--- /dev/null
@@ -0,0 +1,6 @@
+[
+  "versionmodel.js",
+  "versioncollection.js",
+  "versionstabview.js",
+  "filesplugin.js"
+]
index 5181bb1b1ab1d9218e1b0f2bd9ef9bdf6a970e31..3753d8b5016483e7341ba4c152f75186e18121a1 100644 (file)
@@ -163,9 +163,6 @@ class Hooks {
         * Load additional scripts when the files app is visible
         */
        public static function onLoadFilesAppScripts() {
-               \OCP\Util::addScript('files_versions', 'versionmodel');
-               \OCP\Util::addScript('files_versions', 'versioncollection');
-               \OCP\Util::addScript('files_versions', 'versionstabview');
-               \OCP\Util::addScript('files_versions', 'filesplugin');
+               \OCP\Util::addScript('files_versions', 'merged');
        }
 }