aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_archive/js/archive.js
diff options
context:
space:
mode:
authorFrank Karlitschek <frank@owncloud.org>2012-08-26 17:30:07 +0200
committerFrank Karlitschek <frank@owncloud.org>2012-08-26 17:30:07 +0200
commit72e9a2ce57ee88503db83614cec5ccda71f0b58e (patch)
tree8bc301ca22d9ca08ea54426bcb61f62bd1c1cb75 /apps/files_archive/js/archive.js
parent32bad688bdb4fea55eba9d4255fc55f1c60a0aca (diff)
downloadnextcloud-server-72e9a2ce57ee88503db83614cec5ccda71f0b58e.tar.gz
nextcloud-server-72e9a2ce57ee88503db83614cec5ccda71f0b58e.zip
moved to apps repository
Diffstat (limited to 'apps/files_archive/js/archive.js')
-rw-r--r--apps/files_archive/js/archive.js19
1 files changed, 0 insertions, 19 deletions
diff --git a/apps/files_archive/js/archive.js b/apps/files_archive/js/archive.js
deleted file mode 100644
index 6bcbe092662..00000000000
--- a/apps/files_archive/js/archive.js
+++ /dev/null
@@ -1,19 +0,0 @@
-/**
- * Copyright (c) 2012 Robin Appelman <icewind@owncloud.com>
- * This file is licensed under the Affero General Public License version 3 or
- * later.
- * See the COPYING-README file.
- */
-
-$(document).ready(function() {
- if(typeof FileActions!=='undefined'){
- FileActions.register('application/zip','Open', FileActions.PERMISSION_READ, '',function(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', FileActions.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');
- }
-});