Remove the content and table to prevent covering the download link
This commit is contained in:
parent
749b5b52ca
commit
39e587b52c
|
@ -17,6 +17,11 @@ $(document).ready(function() {
|
||||||
var action = FileActions.getDefault(mimetype, 'file', OC.PERMISSION_READ);
|
var action = FileActions.getDefault(mimetype, 'file', OC.PERMISSION_READ);
|
||||||
if (typeof action === 'undefined') {
|
if (typeof action === 'undefined') {
|
||||||
$('#noPreview').show();
|
$('#noPreview').show();
|
||||||
|
if (mimetype != 'httpd/unix-directory') {
|
||||||
|
// NOTE: Remove when a better file previewer solution exists
|
||||||
|
$('#content').remove();
|
||||||
|
$('table').remove();
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
action($('#filename').val());
|
action($('#filename').val());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue