projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de77260
)
Roo/bootstrap/NavItem.js
author
Alan Knowles
<alan@roojs.com>
Thu, 26 Nov 2015 04:09:52 +0000
(12:09 +0800)
committer
Alan Knowles
<alan@roojs.com>
Thu, 26 Nov 2015 04:09:52 +0000
(12:09 +0800)
Roo/bootstrap/NavItem.js
patch
|
blob
|
history
diff --git
a/Roo/bootstrap/NavItem.js
b/Roo/bootstrap/NavItem.js
index
a67f44c
..
da530c4
100644
(file)
--- a/
Roo/bootstrap/NavItem.js
+++ b/
Roo/bootstrap/NavItem.js
@@
-157,6
+157,7
@@
Roo.extend(Roo.bootstrap.NavItem, Roo.bootstrap.Component, {
Roo.log("waiting for the transitionend");
return;
}
+ var dom = this.el.select('a',true).dom;
Roo.log("fire event clicked");
if(this.fireEvent('click', this, e) === false){
@@
-168,6
+169,10
@@
Roo.extend(Roo.bootstrap.NavItem, Roo.bootstrap.Component, {
}
if(this.animateRef && this.href.indexOf('#') > -1){
+ if (this.href.indexOf('#') ==0 || this.href.split("#") {
+ //code
+ }
+
e.preventDefault();
this.scrollToElement(e);
return;