Remove the content and table to prevent covering the download link

remotes/origin/stable45
Michael Gapczynski 14 years ago
parent 749b5b52ca
commit 39e587b52c
  1. 5
      apps/files_sharing/js/public.js

@ -17,6 +17,11 @@ $(document).ready(function() {
var action = FileActions.getDefault(mimetype, 'file', OC.PERMISSION_READ);
if (typeof action === 'undefined') {
$('#noPreview').show();
if (mimetype != 'httpd/unix-directory') {
// NOTE: Remove when a better file previewer solution exists
$('#content').remove();
$('table').remove();
}
} else {
action($('#filename').val());
}

Loading…
Cancel
Save