From 03c17ff614ba9cd022a7c855b63516adfb6f5055 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Tue, 26 Jul 2016 13:40:44 +0200 Subject: dont load filelist previews if we know we dont have one --- apps/files/js/filelist.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/files/js') 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 -- cgit v1.2.3