register download action for files
This commit is contained in:
parent
99f4d949c1
commit
ef8a4a1629
|
@ -32,6 +32,12 @@ $(document).ready(function() {
|
|||
window.location = $(tr).find('a.name').attr('href');
|
||||
}
|
||||
});
|
||||
FileActions.register('file', 'Download', OC.PERMISSION_READ, '', function(filename) {
|
||||
var tr = $('tr').filterAttr('data-file', filename)
|
||||
if (tr.length > 0) {
|
||||
window.location = $(tr).find('a.name').attr('href');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
});
|
Loading…
Reference in New Issue