summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/js/public.js
diff options
context:
space:
mode:
authorGeorg Ehrke <developer@georgehrke.com>2013-08-07 11:57:10 +0200
committerGeorg Ehrke <developer@georgehrke.com>2013-08-07 11:58:49 +0200
commit41ba155a143d318377302e2672726d7ea588c3c4 (patch)
tree2f879e9e1ba7a1bb864e58c62faeead34e9c4c1e /apps/files_sharing/js/public.js
parentdcc92445a0bc3d9d47768ac0f640780f2b09a5fd (diff)
downloadnextcloud-server-41ba155a143d318377302e2672726d7ea588c3c4.tar.gz
nextcloud-server-41ba155a143d318377302e2672726d7ea588c3c4.zip
fix js error
Diffstat (limited to 'apps/files_sharing/js/public.js')
-rw-r--r--apps/files_sharing/js/public.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/js/public.js b/apps/files_sharing/js/public.js
index fbbe9b7f3cb..8cac8bf1997 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' && $('.publicpreview').length() !== 0) {
+ 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') {