Roo/bootstrap/TabPanel.js
authoredward <edward@roojs.com>
Tue, 17 Oct 2017 03:34:13 +0000 (11:34 +0800)
committeredward <edward@roojs.com>
Tue, 17 Oct 2017 03:34:13 +0000 (11:34 +0800)
Roo/bootstrap/TabPanel.js

index 8aa27ba..7168c8f 100644 (file)
@@ -107,17 +107,10 @@ Roo.extend(Roo.bootstrap.TabPanel, Roo.bootstrap.Component,  {
     
     onRender : function(ct, position)
     {
-       // Roo.log("Call onRender: " + this.xtype);
-        
         Roo.bootstrap.TabPanel.superclass.onRender.call(this, ct, position);
-        
-        
-        
-        
-        
     },
     
-    setActive: function(state)
+    setActive : function(state)
     {
         Roo.log("panel - set active " + this.tabId + "=" + state);
         
@@ -132,11 +125,16 @@ Roo.extend(Roo.bootstrap.TabPanel, Roo.bootstrap.Component,  {
         this.fireEvent('changed', this, state);
     },
     
-    onClick: function(e)
+    onClick : function(e)
     {
         e.preventDefault();
         
         window.location.href = this.href;
+    },
+    
+    onTouchStart : function(e)
+    {
+        e.preventDefault();
     }