Fix #6465 - drag drop for cards
[roojs1] / Roo / bootstrap / Radio.js
index 7bf9427..cddcdd1 100644 (file)
 Roo.bootstrap.Radio = function(config){
     Roo.bootstrap.Radio.superclass.constructor.call(this, config);
     
-    this.addEvents({
-       /**
-        * @event click
-        * Fires when the element is click.
-        * @param {Roo.bootstrap.CheckBox} this This input
-        */
-       click : true
-    });
 };
 
 Roo.extend(Roo.bootstrap.Radio, Roo.bootstrap.Component, {
@@ -60,9 +52,11 @@ Roo.extend(Roo.bootstrap.Radio, Roo.bootstrap.Component, {
         
     },
     
-    onClick : function()
+    onClick : function(e)
     {
-        this.setChecked(true);
+        if(this.parent().fireEvent('click', this.parent(), this, e) !== false){
+            this.setChecked(true);
+        }
     },
     
     setChecked : function(state, suppressEvent)