From 39e587b52c92c8b71bb3eed4824c2cfc10b37306 Mon Sep 17 00:00:00 2001 From: Michael Gapczynski Date: Wed, 19 Sep 2012 00:27:20 -0400 Subject: [PATCH] Remove the content and table to prevent covering the download link --- apps/files_sharing/js/public.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/files_sharing/js/public.js b/apps/files_sharing/js/public.js index b1b6b079db..def0237480 100644 --- a/apps/files_sharing/js/public.js +++ b/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()); }