16 lines
522 B
JavaScript
16 lines
522 B
JavaScript
|
/**
|
||
|
* 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','',function(filename){
|
||
|
window.location='index.php?dir='+encodeURIComponent($('#dir').val()).replace(/%2F/g, '/')+'/'+encodeURIComponent(filename);
|
||
|
});
|
||
|
FileActions.setDefault('application/zip','Open');
|
||
|
}
|
||
|
});
|