allow handling thumbnail errors
This commit is contained in:
parent
0f6df2e0b6
commit
c6060f53cd
|
@ -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 New Issue