cls += ' mask-inverse';
}
- if(!this.html.length && !this.maskInverse){
+ if(!this.html.length && !this.maskInverse && !this.videourl.length){
cls += ' enable-mask';
}
cls: 'masonry-brick-text',
html: this.html
});
- }
+ }
+
if (!this.title.length && !this.html.length) {
cfg.cn[1].cls += ' hide';
}
// youtube support only?
cfg.cn.push({
tag: 'iframe',
- cls: 'masonry-brick-image-view',
+ cls: 'masonry-brick-image-view embed-responsive embed-responsive-16by9',
src: vurl,
frameborder : 0,
allowfullscreen : true
});
-
}
return cfg;
e.preventDefault();
- if (this.activcClass != '') {
+ if (this.activeClass != '') {
this.selectBrick();
}
- this.fireEvent('click', this);
+ this.fireEvent('click', this, e);
},
enter: function(e, el)
{
e.preventDefault();
- if(!this.isFitContainer || this.maskInverse){
+ if(!this.isFitContainer || this.maskInverse || this.videourl.length){
return;
}
{
e.preventDefault();
- if(!this.isFitContainer || this.maskInverse){
+ if(!this.isFitContainer || this.maskInverse || this.videourl.length){
return;
}
m.selectedBrick.push(this.id);
this.el.addClass(this.activeClass);
return;
- }
+ },
+ isSelected : function(){
+ return this.el.hasClass(this.activeClass);
+
+ }
});
Roo.apply(Roo.bootstrap.MasonryBrick, {