diff options
author | Robin Appelman <icewind@owncloud.com> | 2015-08-28 20:14:48 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2015-09-02 10:32:43 +0200 |
commit | c6060f53cd370dec1960a6bbf14a5788b75467d4 (patch) | |
tree | 31f13a6b26f163d8712f104d3526e035fe8b48c8 /apps/files/js/mainfileinfodetailview.js | |
parent | 0f6df2e0b66581b0ff84094acb18d5517b4eb687 (diff) | |
download | nextcloud-server-c6060f53cd370dec1960a6bbf14a5788b75467d4.tar.gz nextcloud-server-c6060f53cd370dec1960a6bbf14a5788b75467d4.zip |
allow handling thumbnail errors
Diffstat (limited to 'apps/files/js/mainfileinfodetailview.js')
-rw-r--r-- | apps/files/js/mainfileinfodetailview.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/files/js/mainfileinfodetailview.js b/apps/files/js/mainfileinfodetailview.js index f647a0de2a9..e33c0edb1d6 100644 --- a/apps/files/js/mainfileinfodetailview.js +++ b/apps/files/js/mainfileinfodetailview.js @@ -132,7 +132,10 @@ y: 75, callback: function(previewUrl) { $iconDiv.css('background-image', 'url("' + previewUrl + '")'); - } + }, + error: function() { + this.$el.find('.thumbnailContainer').removeClass('image'); //fall back to regular view + }.bind(this) }); } else { // TODO: special icons / shared / external |