更新 infowindow-view.js
This commit is contained in:
parent
2e1e949065
commit
ca7e857600
@ -180,10 +180,15 @@ var Infowindow = View.extend({
|
||||
|
||||
$video
|
||||
// .load(this._onLoadVideoSuccess)
|
||||
.error(this._onLoadImageError)
|
||||
.error(this._onLoadVideoError)
|
||||
.attr('src', url);
|
||||
},
|
||||
|
||||
_onLoadVideoError: function () {
|
||||
this._stopCoverLoader();
|
||||
this._showInfowindowVideoError();
|
||||
},
|
||||
|
||||
_onLoadVideoSuccess: function () {
|
||||
var $cover = this.$('.js-cover');
|
||||
var $img = this.$('.CDB-infowindow-media-item');
|
||||
|
Loading…
Reference in New Issue
Block a user