summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/js
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-01-23 20:15:10 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2014-01-23 20:15:10 +0100
commit617aa3cf29955a23eed2ececc8e1876d77002223 (patch)
treecc56d5efd90d39a6d12b2387a55d3e548b546cdc /apps/files_sharing/js
parent799e744ad77c3f8ae7aac63125a3af17880bb9d5 (diff)
downloadnextcloud-server-617aa3cf29955a23eed2ececc8e1876d77002223.tar.gz
nextcloud-server-617aa3cf29955a23eed2ececc8e1876d77002223.zip
Instead of 'No preview available for ...' we simple display the mieme-type icon
Diffstat (limited to 'apps/files_sharing/js')
-rw-r--r--apps/files_sharing/js/public.js9
1 files changed, 1 insertions, 8 deletions
diff --git a/apps/files_sharing/js/public.js b/apps/files_sharing/js/public.js
index d95f6348ac0..730649c6378 100644
--- a/apps/files_sharing/js/public.js
+++ b/apps/files_sharing/js/public.js
@@ -15,14 +15,7 @@ $(document).ready(function() {
if (mimetype.substr(0, mimetype.indexOf('/')) != 'image' && $('.publicpreview').length === 0) {
// Trigger default action if not download TODO
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 {
+ if (typeof action !== 'undefined') {
action($('#filename').val());
}
}