Roo/bootstrap/panel/Content.js
authorAlan Knowles <alan@roojs.com>
Thu, 19 Apr 2018 02:04:40 +0000 (10:04 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 19 Apr 2018 02:04:40 +0000 (10:04 +0800)
Roo/bootstrap/panel/Content.js

index f9e0854..735ed01 100644 (file)
@@ -226,15 +226,13 @@ Roo.extend(Roo.bootstrap.panel.Content, Roo.bootstrap.Component, {
         this.active = active;
         this.setActiveClass(active);
         if(!active){
-            
             if(this.fireEvent("deactivate", this) === false){
                 return false;
             }
-            
             return true;
-        }else{
-            this.fireEvent("activate", this);
         }
+        this.fireEvent("activate", this);
+        return true;
     },
     /**
      * Updates this panel's element