Roo/bootstrap/TabPanel.js
authorAlan Knowles <alan@roojs.com>
Thu, 5 Feb 2015 02:40:02 +0000 (10:40 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 5 Feb 2015 02:40:02 +0000 (10:40 +0800)
Roo/bootstrap/TabPanel.js

index 01f7ee9..c8a08eb 100644 (file)
@@ -93,6 +93,13 @@ Roo.extend(Roo.bootstrap.TabPanel, Roo.bootstrap.Component,  {
                     Roo.log("could not find navID:"  + this.navId + ", tabId: " + this.tabId);
                 } else {
                     item.on('changed', function(item, state) {
+                        var tg = Roo.bootstrap.TabGroup.get(this.navId);
+                        if (tg) {
+                            if (state) {
+                                tg.showPanel(this)
+                            }
+                            return;
+                        }
                         this.setActive(state);
                     }, this);
                 }