diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2017-03-24 19:57:19 +0100 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2017-03-24 19:57:19 +0100 |
commit | 0ed56589cccbb9421da24a60b7ab575df7a5a40e (patch) | |
tree | 26ec4acc21639e7b18f63eab0e81b100ef113dad /apps | |
parent | 2cd79a8d3d6c160b9458327b1429eed9ec1a25a2 (diff) | |
download | nextcloud-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.json | 6 | ||||
-rw-r--r-- | apps/files_versions/lib/Hooks.php | 5 |
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'); } } |