Roo/bootstrap/MasonryBrick.js
authorjohn <john@roojs.com>
Thu, 21 Dec 2017 02:51:43 +0000 (10:51 +0800)
committerjohn <john@roojs.com>
Thu, 21 Dec 2017 02:51:43 +0000 (10:51 +0800)
roojs-bootstrap.js
roojs-bootstrap-debug.js

Roo/bootstrap/MasonryBrick.js
roojs-bootstrap-debug.js
roojs-bootstrap.js

index a4ac063..7325a15 100644 (file)
@@ -498,7 +498,7 @@ Roo.extend(Roo.bootstrap.MasonryBrick, Roo.bootstrap.Component,  {
 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
index 3619163..41afa2a 100644 (file)
@@ -32416,7 +32416,7 @@ Roo.extend(Roo.bootstrap.MasonryBrick, Roo.bootstrap.Component,  {
 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
index d253343..3cd0a76 100644 (file)
@@ -1361,7 +1361,7 @@ if(this.activcClass!=''){this.selectBrick();}this.fireEvent('click',this);},ente
 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';