更新 infowindow-view.js
This commit is contained in:
parent
33e58f10ec
commit
25d896e213
@ -118,6 +118,10 @@ var Infowindow = View.extend({
|
|||||||
this._loadVideo();
|
this._loadVideo();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (this._containsH5url()) {
|
||||||
|
this._loadH5url();
|
||||||
|
}
|
||||||
|
|
||||||
this._setupClasses();
|
this._setupClasses();
|
||||||
this._renderScroll();
|
this._renderScroll();
|
||||||
this._renderShadows();
|
this._renderShadows();
|
||||||
@ -128,6 +132,17 @@ var Infowindow = View.extend({
|
|||||||
},
|
},
|
||||||
|
|
||||||
// video add
|
// video add
|
||||||
|
_containsH5url: function () {
|
||||||
|
return !!this.$('.js-infowindow').attr('data-h5url');
|
||||||
|
},
|
||||||
|
|
||||||
|
_loadH5url: function () {
|
||||||
|
var url = this._getCoverURL();
|
||||||
|
|
||||||
|
var $urlsrc = this.$('#mainContent');
|
||||||
|
$urlsrc.attr('src', url);
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
_containsVideo: function () {
|
_containsVideo: function () {
|
||||||
return !!this.$('.js-infowindow').attr('data-video');
|
return !!this.$('.js-infowindow').attr('data-video');
|
||||||
@ -138,6 +153,8 @@ var Infowindow = View.extend({
|
|||||||
//this._startCoverLoader();
|
//this._startCoverLoader();
|
||||||
|
|
||||||
var url = this._getCoverURL();
|
var url = this._getCoverURL();
|
||||||
|
var $urlsrc = this.$('#target');
|
||||||
|
$urlsrc.attr('src', url);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
if (this._isLoadingFields()) {
|
if (this._isLoadingFields()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user