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

index da530c4..2baa5d6 100644 (file)
@@ -157,7 +157,8 @@ 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){
@@ -167,10 +168,10 @@ Roo.extend(Roo.bootstrap.NavItem, Roo.bootstrap.Component,  {
         if(this.tagtype == 'span'){
             return;
         }
-        
+        var dom = this.el.select('a',true).dom;
         if(this.animateRef && this.href.indexOf('#') > -1){
-            if (this.href.indexOf('#') ==0 || this.href.split("#") {
-                //code
+            if (dom.href.split("#")[0] != document.location.toString().split("#")[0]) {
+                return; // ignore... - it's a 'hash' to another page.
             }
             
             e.preventDefault();