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

index 4db1d1e..a4cf8b7 100644 (file)
@@ -226,7 +226,13 @@ Roo.extend(Roo.bootstrap.panel.Content, Roo.bootstrap.Component, {
         this.active = active;
         this.setActiveClass(active);
         if(!active){
-            this.fireEvent("deactivate", this);
+            
+            if(!this.fireEvent("deactivate", this)){
+                return false;
+            }
+            
+            return true;
+            
         }else{
             this.fireEvent("activate", this);
         }