Roo.apply(Roo.bootstrap.MasonryBrick, {
//groups: {},
- groups = new Roo.util.MixedCollection(false, function(o) { return o.el.id; }),
+ groups : new Roo.util.MixedCollection(false, function(o) { return o.el.id; }),
/**
* register a Masonry Brick
* @param {Roo.bootstrap.MasonryBrick} the masonry brick to add
Roo.apply(Roo.bootstrap.MasonryBrick, {
//groups: {},
- groups = new Roo.util.MixedCollection(false, function(o) { return o.el.id; }),
+ groups : new Roo.util.MixedCollection(false, function(o) { return o.el.id; }),
/**
* register a Masonry Brick
* @param {Roo.bootstrap.MasonryBrick} the masonry brick to add
if(!this.isFitContainer){return;}if(!this.bgimage.length||!this.html.length){return;}this.el.select('.masonry-brick-paragraph',true).first().setOpacity(0.9,true);this.timer=new Date().getTime();},onTouchMove:function(e,el){this.touchmoved=true;},onContextMenu:function(e,el){e.preventDefault();
e.stopPropagation();return false;},onTouchEnd:function(e,el){if((new Date().getTime()-this.timer>1000)||!this.href.length||this.touchmoved){this.leave(e,el);return;}if(!this.bgimage.length||!this.html.length){if(this.href.length){window.location.href=this.href;
}return;}if(!this.isFitContainer){return;}this.el.select('.masonry-brick-paragraph',true).first().setOpacity(0,true);window.location.href=this.href;},selectBrick:function(){if(!this.parentId){return;}var m=Roo.bootstrap.LayoutMasonry.get(this.parentId);var A=m.selectedBrick.indexOf(this.id);
-if(A>-1){m.selectedBrick.splice(A,1);this.el.removeClass(this.activeClass);return;}m.selectedBrick.push(this.id);this.el.addClass(this.activeClass);return;}});Roo.apply(Roo.bootstrap.MasonryBrick,{groups=new Roo.util.MixedCollection(false,function(o){return o.el.id;
+if(A>-1){m.selectedBrick.splice(A,1);this.el.removeClass(this.activeClass);return;}m.selectedBrick.push(this.id);this.el.addClass(this.activeClass);return;}});Roo.apply(Roo.bootstrap.MasonryBrick,{groups:new Roo.util.MixedCollection(false,function(o){return o.el.id;
}),register:function(A){this.groups.add(A.id,A);},get:function(A){if(this.groups.key(A)){return this.groups.key(A);}return false;}});
// Roo/bootstrap/Brick.js
Roo.bootstrap.Brick=function(A){Roo.bootstrap.Brick.superclass.constructor.call(this,A);this.addEvents({"click":true});};Roo.extend(Roo.bootstrap.Brick,Roo.bootstrap.Component,{title:'',html:'',bgimage:'',cls:'',href:'',video:'',square:true,getAutoCreate:function(){var A='roo-brick';