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

index ae9df5e..f685651 100644 (file)
@@ -77,12 +77,14 @@ Roo.extend(Roo.bootstrap.Img, Roo.bootstrap.Component,  {
     
     initEvents: function() {
         
-        this.el.on('click', this.onClick, this);
-       
+        if(!this.href){
+            this.el.on('click', this.onClick, this);
+        }
     },
     
     onClick : function(e)
     {
+        Roo.log('img onclick');
         this.fireEvent('click', this, e);
     }