remove debugging code
[roojs1] / Roo / bootstrap / Radio.js
index 488c0ef..cddcdd1 100644 (file)
@@ -52,23 +52,25 @@ 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)
     {
         this.parent().setValue(this.value, suppressEvent);
         
-    }
+    },
     
     setBoxLabel : function(v)
     {
         this.boxLabel = v;
         
         if(this.rendered){
-            this.el.select('label.box-label',true).dom.innerHTML = (v === null || v === undefined ? '' : v);
+            this.el.select('label.box-label',true).first().dom.innerHTML = (v === null || v === undefined ? '' : v);
         }
     }