projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa984b3
)
maso
author
john
<john@roojs.com>
Thu, 14 Dec 2017 10:20:19 +0000
(18:20 +0800)
committer
john
<john@roojs.com>
Thu, 14 Dec 2017 10:20:19 +0000
(18:20 +0800)
Roo/bootstrap/LayoutMasonry.js
patch
|
blob
|
history
diff --git
a/Roo/bootstrap/LayoutMasonry.js
b/Roo/bootstrap/LayoutMasonry.js
index
1f5ec73
..
395d58a
100644
(file)
--- a/
Roo/bootstrap/LayoutMasonry.js
+++ b/
Roo/bootstrap/LayoutMasonry.js
@@
-1238,9
+1238,19
@@
Roo.extend(Roo.bootstrap.LayoutMasonry, Roo.bootstrap.Component, {
* remove a Masonry Brick
* @param {Roo.bootstrap.MasonryBrick} the masonry brick to remove
*/
- removeBrick : function(
cfg
)
+ removeBrick : function(
brick_id
)
{
+ if (!brick_id) {
+ return;
+ }
+ for (var i = 0; i<this.bricks.length; i++) {
+ if (this.bricks[i].id == brick_id) {
+ this.bricks.splice(i,1);
+ this.getChildContainer.removeChild(Roo.get(brick_id).dom);
+ this.initial();
+ }
+ }
},
/**