cls += ' mask-inverse';
}
- if(!this.html.length && !this.maskInverse){
+ if(!this.html.length && !this.maskInverse && !this.videourl.length){
cls += ' enable-mask';
}
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)
{
- Roo.log('enter?????????????????');
-
e.preventDefault();
if(!this.isFitContainer || this.maskInverse || this.videourl.length){
- Roo.log('run????????????????????');
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, {