Roo/bootstrap/Container.js
authoredward <edward@roojs.com>
Mon, 25 Apr 2016 06:56:52 +0000 (14:56 +0800)
committeredward <edward@roojs.com>
Mon, 25 Apr 2016 06:56:52 +0000 (14:56 +0800)
Roo/bootstrap/Container.js

index ed393a1..1cc8ba9 100644 (file)
@@ -232,7 +232,9 @@ Roo.extend(Roo.bootstrap.Container, Roo.bootstrap.Component,  {
             }
         }
         
-        
+        if(this.clickable){
+            this.el.on('click', this.onClick, this);
+        }
         
     },
     
@@ -351,6 +353,13 @@ Roo.extend(Roo.bootstrap.Container, Roo.bootstrap.Component,  {
         }
         
         t.dom.innerHTML = v;
+    },
+    
+    onClick : function(e)
+    {
+        e.preventDefault();
+        
+        this.fireEvent('click', this, e);
     }
    
 });