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:
authorArthur Schiwon <blizzz@owncloud.com>2012-05-31 21:46:32 +0400
committerArthur Schiwon <blizzz@owncloud.com>2012-05-31 21:46:51 +0400
commit91f0e44f20a75cae89b2524d081b3fab5aabf036 (patch)
tree950ff51bd947248c6439d0715430082f476a0502 /files_archive
parent801dbd5051e0dc17bbfc5b9c7c052614276cf857 (diff)
linkTo instead of hard links in Files and Files_Archive. Hope that makes sense.
Diffstat (limited to 'files_archive')
-rw-r--r--files_archive/js/archive.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/files_archive/js/archive.js b/files_archive/js/archive.js
index 531eb61c0..9fb9853e2 100644
--- a/files_archive/js/archive.js
+++ b/files_archive/js/archive.js
@@ -8,11 +8,11 @@
$(document).ready(function() {
if(typeof FileActions!=='undefined'){
FileActions.register('application/zip','Open','',function(filename){
- window.location='index.php?dir='+encodeURIComponent($('#dir').val()).replace(/%2F/g, '/')+'/'+encodeURIComponent(filename);
+ window.location=OC.linkTo('files', '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);
+ window.location=OC.linkTo('files', 'index.php')+'&dir='+encodeURIComponent($('#dir').val()).replace(/%2F/g, '/')+'/'+encodeURIComponent(filename);
});
FileActions.setDefault('application/x-gzip','Open');
}