summaryrefslogtreecommitdiffstats
path: root/apps/files_archive/js
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-03-28 23:53:51 +0200
committerRobin Appelman <icewind@owncloud.com>2012-03-28 23:53:51 +0200
commit72882beb0d6ba7ebb70bdd6265c15656376e742c (patch)
treeb618e3253a5cf5fb06faeff22c13a8622410329a /apps/files_archive/js
parent1b6fe4f65efb1d1f696f35b70454ad30cae6310b (diff)
downloadnextcloud-server-72882beb0d6ba7ebb70bdd6265c15656376e742c.tar.gz
nextcloud-server-72882beb0d6ba7ebb70bdd6265c15656376e742c.zip
enble browsing tar files in the web interface
Diffstat (limited to 'apps/files_archive/js')
-rw-r--r--apps/files_archive/js/archive.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/files_archive/js/archive.js b/apps/files_archive/js/archive.js
index ec316c7bf2c..531eb61c01a 100644
--- a/apps/files_archive/js/archive.js
+++ b/apps/files_archive/js/archive.js
@@ -11,5 +11,9 @@ $(document).ready(function() {
window.location='index.php?dir='+encodeURIComponent($('#dir').val()).replace(/%2F/g, '/')+'/'+encodeURIComponent(filename);
});
FileActions.setDefault('application/zip','Open');
+ FileActions.register('application/x-gzip','Open','',function(filename){
+ window.location='index.php?dir='+encodeURIComponent($('#dir').val()).replace(/%2F/g, '/')+'/'+encodeURIComponent(filename);
+ });
+ FileActions.setDefault('application/x-gzip','Open');
}
});