Roo/bootstrap/panel/Content.js
authoredward <edward@roojs.com>
Wed, 18 Apr 2018 08:50:29 +0000 (16:50 +0800)
committeredward <edward@roojs.com>
Wed, 18 Apr 2018 08:50:29 +0000 (16:50 +0800)
Roo/bootstrap/panel/Content.js

index cb0cca6..1d8b832 100644 (file)
@@ -226,10 +226,12 @@ Roo.extend(Roo.bootstrap.panel.Content, Roo.bootstrap.Component, {
         this.active = active;
         this.setActiveClass(active);
         if(!active){
-//            this.fireEvent("deactivate", this);
-if(!this.activePanel.setActiveState(false)){
-                return;
+            
+            if(!this.fireEvent("deactivate", this)){
+                return false;
             }
+            
+            return true;
         }else{
             this.fireEvent("activate", this);
         }