buildSDK/dependancy_bootstrap.txt
[roojs1] / Roo / bootstrap / Radio.js
index 344bc57..cddcdd1 100644 (file)
@@ -52,19 +52,26 @@ 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);
+        this.parent().setValue(this.value, suppressEvent);
         
-        if(suppressEvent !== true){
-            this.fireEvent('check', this, state);
-        }
+    },
+    
+    setBoxLabel : function(v)
+    {
+        this.boxLabel = v;
         
+        if(this.rendered){
+            this.el.select('label.box-label',true).first().dom.innerHTML = (v === null || v === undefined ? '' : v);
+        }
     }
     
 });