Roo/bootstrap/NavItem.js
authorAlan Knowles <alan@roojs.com>
Thu, 26 Nov 2015 04:09:52 +0000 (12:09 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 26 Nov 2015 04:09:52 +0000 (12:09 +0800)
Roo/bootstrap/NavItem.js

index a67f44c..da530c4 100644 (file)
@@ -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;