summaryrefslogtreecommitdiffstats
path: root/apps/files/js
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2016-07-26 13:40:44 +0200
committerRobin Appelman <robin@icewind.nl>2016-07-27 12:59:43 +0200
commit03c17ff614ba9cd022a7c855b63516adfb6f5055 (patch)
tree47e0aada21835ad51469e88d14a06943020fda70 /apps/files/js
parent1fef5d3d06752f1a2a686681ae81fd13d88e535a (diff)
downloadnextcloud-server-03c17ff614ba9cd022a7c855b63516adfb6f5055.tar.gz
nextcloud-server-03c17ff614ba9cd022a7c855b63516adfb6f5055.zip
dont load filelist previews if we know we dont have one
Diffstat (limited to 'apps/files/js')
-rw-r--r--apps/files/js/filelist.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index 24cccb3a5c8..6ac72d8c169 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -1335,7 +1335,7 @@
// display actions
this.fileActions.display(filenameTd, !options.silent, this);
- if (mime !== 'httpd/unix-directory') {
+ if (mime !== 'httpd/unix-directory' && fileData.hasPreview !== false) {
var iconDiv = filenameTd.find('.thumbnail');
// lazy load / newly inserted td ?
// the typeof check ensures that the default value of animate is true