Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/gallery.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorOlivier Paroz <oparoz@users.noreply.github.com>2015-10-13 15:31:37 +0300
committerOlivier Paroz <oparoz@users.noreply.github.com>2015-10-13 15:31:37 +0300
commit7b4e69dee5195a777de9aa08183655fed267f4a8 (patch)
tree5a163c811d443d4e3edf7a0b0973816ee7aad0b7 /js
parentcbd13df9bc3ce14491a8f64bb6eae76918de39ef (diff)
parentde642bc21f90a8fc4f4a1f7e35025970c3e889b0 (diff)
Merge pull request #409 from owncloud/force-chrome-to-load-images-after-onerrorv8.2RC2
Force Chrome to reload images after image.onerror
Diffstat (limited to 'js')
-rw-r--r--js/thumbnail.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/js/thumbnail.js b/js/thumbnail.js
index 0353d6e5..92398722 100644
--- a/js/thumbnail.js
+++ b/js/thumbnail.js
@@ -132,7 +132,8 @@ function Thumbnail (fileId, square) {
};
thumb.image.onerror = function () {
thumb.valid = false;
- thumb.image.src = Thumbnails._getMimeIcon(preview.mimetype);
+ var icon = Thumbnails._getMimeIcon(preview.mimetype);
+ setTimeout(function(){ thumb.image.src = icon; }, 0);
};
if (thumb.status === 200) {