projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bfa7775
)
Roo/bootstrap/MasonryBrick.js
author
edward
<edward@roojs.com>
Wed, 18 Oct 2017 04:40:41 +0000
(12:40 +0800)
committer
edward
<edward@roojs.com>
Wed, 18 Oct 2017 04:40:41 +0000
(12:40 +0800)
Roo/bootstrap/MasonryBrick.js
patch
|
blob
|
history
diff --git
a/Roo/bootstrap/MasonryBrick.js
b/Roo/bootstrap/MasonryBrick.js
index
7c8fbcd
..
8039d39
100644
(file)
--- a/
Roo/bootstrap/MasonryBrick.js
+++ b/
Roo/bootstrap/MasonryBrick.js
@@
-346,17
+346,17
@@
Roo.extend(Roo.bootstrap.MasonryBrick, Roo.bootstrap.Component, {
onClick: function(e, el)
{
- if(!Roo.isTouch){
- return;
- }
-
var time = this.endTimer - this.startTimer;
- if(time < 1000){
- return;
+ if(Roo.isTouch){
+ if(time > 1000){
+ e.preventDefault();
+ return;
+ }
}
- e.preventDefault();
+ this.fireEvent('click', this);
+
},
enter: function(e, el)