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

github.com/nextcloud/apps.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan Carlos Cornejo <jc2@paintblack.com>2012-09-17 00:52:14 +0400
committerJuan Carlos Cornejo <jc2@paintblack.com>2012-09-17 00:52:14 +0400
commit51ec2e9b65f3495e53e6ac67b17002bcd2df08b1 (patch)
tree6faaa9914b244a24873833c79a2686c6183871bb /files_archive
parent16e620e62fdaaf36020fa5cef0532f904d08b4fb (diff)
Fixed bug where tar, tar.gz2 and tgz could not be opened and explored like zip and gzip.
Simply registered the mimetype: x-compressed and x-tar.
Diffstat (limited to 'files_archive')
-rw-r--r--files_archive/js/archive.js10
1 files changed, 9 insertions, 1 deletions
diff --git a/files_archive/js/archive.js b/files_archive/js/archive.js
index b62d16f3f..bc9bb1139 100644
--- a/files_archive/js/archive.js
+++ b/files_archive/js/archive.js
@@ -14,6 +14,14 @@ $(document).ready(function() {
FileActions.register('application/x-gzip','Open', OC.PERMISSION_READ, '',function(filename){
window.location=OC.linkTo('files', 'index.php')+'&dir='+encodeURIComponent($('#dir').val()).replace(/%2F/g, '/')+'/'+encodeURIComponent(filename);
});
- FileActions.setDefault('application/x-gzip','Open');
+ FileActions.setDefault('application/x-compressed','Open');
+ FileActions.register('application/x-compressed','Open', OC.PERMISSION_READ, '',function(filename){
+ window.location=OC.linkTo('files', 'index.php')+'&dir='+encodeURIComponent($('#dir').val()).replace(/%2F/g, '/')+'/'+encodeURIComponent(filename);
+ });
+ FileActions.setDefault('application/x-compressed','Open');
+ FileActions.register('application/x-tar','Open', OC.PERMISSION_READ, '',function(filename){
+ window.location=OC.linkTo('files', 'index.php')+'&dir='+encodeURIComponent($('#dir').val()).replace(/%2F/g, '/')+'/'+encodeURIComponent(filename);
+ });
+ FileActions.setDefault('application/x-tar','Open');
}
});