diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2012-05-31 19:46:32 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2012-06-05 14:14:26 +0200 |
commit | 769d94ab262d7f5c3477e77a4ae103e6184e43b3 (patch) | |
tree | 4423119a1f6af8e3c89b30bf523c4797dcb84429 /apps/files_archive | |
parent | 5c9325bbe0e6a79be302f96076c5ee77df09ac70 (diff) | |
download | nextcloud-server-769d94ab262d7f5c3477e77a4ae103e6184e43b3.tar.gz nextcloud-server-769d94ab262d7f5c3477e77a4ae103e6184e43b3.zip |
linkTo instead of hard links in Files and Files_Archive. Hope that makes sense.
Diffstat (limited to 'apps/files_archive')
-rw-r--r-- | apps/files_archive/js/archive.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_archive/js/archive.js b/apps/files_archive/js/archive.js index 531eb61c01a..9fb9853e299 100644 --- a/apps/files_archive/js/archive.js +++ b/apps/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'); } |