diff options
author | Michael Gapczynski <mtgap@owncloud.com> | 2012-09-19 00:27:20 -0400 |
---|---|---|
committer | Michael Gapczynski <mtgap@owncloud.com> | 2012-09-19 00:27:53 -0400 |
commit | 39e587b52c92c8b71bb3eed4824c2cfc10b37306 (patch) | |
tree | 1460a17784e4a84c4a29c48c24556a67344856cb /apps/files_sharing/js/public.js | |
parent | 749b5b52ca5361be76d8e6ffb5857e2b6ca60311 (diff) | |
download | nextcloud-server-39e587b52c92c8b71bb3eed4824c2cfc10b37306.tar.gz nextcloud-server-39e587b52c92c8b71bb3eed4824c2cfc10b37306.zip |
Remove the content and table to prevent covering the download link
Diffstat (limited to 'apps/files_sharing/js/public.js')
-rw-r--r-- | apps/files_sharing/js/public.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/files_sharing/js/public.js b/apps/files_sharing/js/public.js index b1b6b079db6..def02374804 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()); } |