Fix #6464 - card header
[roojs1] / Roo / bootstrap / Radio.js
index acf3d82..cddcdd1 100644 (file)
@@ -52,28 +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)
     {
-        Roo.each(this.parent().items, function(i){
-            i.checked = false;
-            i.el.removeClass('checked');
-        });
+        this.parent().setValue(this.value, suppressEvent);
         
-        if(state){
-            this.checked = true;
-            this.el.addClass('checked');
-        }
+    },
+    
+    setBoxLabel : function(v)
+    {
+        this.boxLabel = v;
         
-        if(suppressEvent !== true){
-            this.fireEvent('check', this, state);
+        if(this.rendered){
+            this.el.select('label.box-label',true).first().dom.innerHTML = (v === null || v === undefined ? '' : v);
         }
-        
-        this.parent().validate();
     }
     
 });