Roo/bootstrap/Container.js
authoredward <edward@roojs.com>
Fri, 4 Dec 2015 05:00:33 +0000 (13:00 +0800)
committeredward <edward@roojs.com>
Fri, 4 Dec 2015 05:00:33 +0000 (13:00 +0800)
Roo/bootstrap/Container.js

index f5287e8..bf3a6af 100644 (file)
@@ -194,10 +194,17 @@ Roo.extend(Roo.bootstrap.Container, Roo.bootstrap.Component,  {
             return;
         }
         
-        this.el.select('.panel-heading .fa',true).first().on('click', this.onToggle, this);
+        this.el.select('.panel-heading .fa',true).first().on('click', this.onToggleClick, this);
     },
     
-    
+    function toggleEl : function()
+    {
+        if(!this.el || !this.panel.length || !this.header.length || !this.expandable){
+            return;
+        }
+        
+        return this.el.select('.panel-heading .fa',true).first();
+    }
     
     titleEl : function()
     {