Remove the content and table to prevent covering the download link

This commit is contained in:
Michael Gapczynski 2012-09-19 00:27:20 -04:00
parent 749b5b52ca
commit 39e587b52c

View file

@ -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());
}