diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2013-08-31 03:41:29 -0700 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2013-08-31 03:41:29 -0700 |
commit | 92e90c8eb995c886b3e9cd77c14e3f0b25b95cd7 (patch) | |
tree | ed757086fcf6d761a615eb7bbbf24ebc06407310 /apps/files_sharing/js/public.js | |
parent | 0f5df181a3b1f88075193fca0bed88f289314c8e (diff) | |
parent | 668c4c2652ef4619a132d609461423aafaef424e (diff) | |
download | nextcloud-server-92e90c8eb995c886b3e9cd77c14e3f0b25b95cd7.tar.gz nextcloud-server-92e90c8eb995c886b3e9cd77c14e3f0b25b95cd7.zip |
Merge pull request #4022 from owncloud/oc_preview
\OC\Preview
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 7ffd5e06873..357c6fdf540 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') { |