diff options
author | Georg Ehrke <developer@georgehrke.com> | 2013-08-07 11:48:08 +0200 |
---|---|---|
committer | Georg Ehrke <developer@georgehrke.com> | 2013-08-07 11:48:08 +0200 |
commit | 91bd4dd67b7d58f09a4dadff8060f63c6d6b691e (patch) | |
tree | 9924d0a128a8ee77e225d5858ef1221c95af93e7 /apps/files_sharing/js/public.js | |
parent | af983b843d1335917f4a702cea6d91d28bab68e9 (diff) | |
download | nextcloud-server-91bd4dd67b7d58f09a4dadff8060f63c6d6b691e.tar.gz nextcloud-server-91bd4dd67b7d58f09a4dadff8060f63c6d6b691e.zip |
implement previews of single shared files
Diffstat (limited to 'apps/files_sharing/js/public.js')
-rw-r--r-- | apps/files_sharing/js/public.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/js/public.js b/apps/files_sharing/js/public.js index 294223aa094..fbbe9b7f3cb 100644 --- a/apps/files_sharing/js/public.js +++ b/apps/files_sharing/js/public.js @@ -16,7 +16,7 @@ $(document).ready(function() { if (typeof FileActions !== 'undefined') { var mimetype = $('#mimetype').val(); // Show file preview if previewer is available, images are already handled by the template - if (mimetype.substr(0, mimetype.indexOf('/')) != 'image') { + 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') { |