mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
allow handling thumbnail errors
This commit is contained in:
parent
0f6df2e0b6
commit
c6060f53cd
1 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue