Roo/bootstrap/Radio.js
authorAlan Knowles <alan@roojs.com>
Thu, 30 Jul 2015 07:09:11 +0000 (15:09 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 30 Jul 2015 07:09:11 +0000 (15:09 +0800)
Roo/bootstrap/Radio.js

index d137832..879521e 100644 (file)
@@ -169,6 +169,18 @@ Roo.extend(Roo.bootstrap.Radio, Roo.bootstrap.CheckBox,  {
         return cfg;
         
     },
+    
+    initEvents : function()
+    {
+//        Roo.bootstrap.CheckBox.superclass.initEvents.call(this);
+        
+        this.inputEl().on('click', this.onClick,  this);
+        if (this.boxLabel) { 
+            this.el.select('label.box-label',true).first().on('click', this.onClick,  this);
+        }
+        
+    },
+    
     inputEl: function ()
     {
         return this.el.select('input.roo-radio',true).first();