summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2017-03-24 19:57:19 +0100
committerLukas Reschke <lukas@statuscode.ch>2017-03-24 19:57:19 +0100
commit0ed56589cccbb9421da24a60b7ab575df7a5a40e (patch)
tree26ec4acc21639e7b18f63eab0e81b100ef113dad /apps
parent2cd79a8d3d6c160b9458327b1429eed9ec1a25a2 (diff)
downloadnextcloud-server-0ed56589cccbb9421da24a60b7ab575df7a5a40e.tar.gz
nextcloud-server-0ed56589cccbb9421da24a60b7ab575df7a5a40e.zip
Merge JS for files_versions
Shaves off 3 requests. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'apps')
-rw-r--r--apps/files_versions/js/merged.json6
-rw-r--r--apps/files_versions/lib/Hooks.php5
2 files changed, 7 insertions, 4 deletions
diff --git a/apps/files_versions/js/merged.json b/apps/files_versions/js/merged.json
new file mode 100644
index 00000000000..1a7fbad298b
--- /dev/null
+++ b/apps/files_versions/js/merged.json
@@ -0,0 +1,6 @@
+[
+ "versionmodel.js",
+ "versioncollection.js",
+ "versionstabview.js",
+ "filesplugin.js"
+]
diff --git a/apps/files_versions/lib/Hooks.php b/apps/files_versions/lib/Hooks.php
index 5181bb1b1ab..3753d8b5016 100644
--- a/apps/files_versions/lib/Hooks.php
+++ b/apps/files_versions/lib/Hooks.php
@@ -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');
}
}