Roo/bootstrap/Img.js
authorEdward <edward@roojs.com>
Fri, 21 Mar 2014 05:10:15 +0000 (13:10 +0800)
committerEdward <edward@roojs.com>
Fri, 21 Mar 2014 05:10:15 +0000 (13:10 +0800)
Roo/bootstrap/Img.js

index c9da803..2087165 100644 (file)
@@ -61,6 +61,15 @@ Roo.extend(Roo.bootstrap.Img, Roo.bootstrap.Component,  {
         }
         
         return cfg;
+    },
+    
+    initEvents: function() {
+        this.el.on('click', this.onClick, this);
+       
+    },
+    onClick : function(e)
+    {
+        this.fireEvent('click', this, e);
     }
    
 });