Roo/bootstrap/CheckBox.js
authorEdward <edward@roojs.com>
Tue, 9 Jun 2015 05:27:08 +0000 (13:27 +0800)
committerEdward <edward@roojs.com>
Tue, 9 Jun 2015 05:27:08 +0000 (13:27 +0800)
Roo/bootstrap/CheckBox.js

index 179eead..372b066 100644 (file)
@@ -262,14 +262,14 @@ Roo.extend(Roo.bootstrap.CheckBox, Roo.bootstrap.Input,  {
     setValue : function(v,suppressEvent)
     {
         if(this.inputType == 'radio'){
-            this.setGroupValue(v);
+            this.setGroupValue(v, suppressEvent);
             return;
         }
         
         this.setChecked(((typeof(v) == 'undefined') ? this.checked : (String(v) === String(this.inputValue))), suppressEvent);
     },
     
-    setGroupValue : function(v)
+    setGroupValue : function(v, suppressEvent)
     {
         Roo.each(this.el.up('form').select('input[name='+this.name+']', true).elements, function(e){
             e.dom.checked = false;
@@ -280,14 +280,10 @@ Roo.extend(Roo.bootstrap.CheckBox, Roo.bootstrap.Input,  {
             
         });
 
-        this.inputEl().dom.checked = true;
-
         if(suppressEvent !== true){
             this.fireEvent('check', this, true);
         }
 
-        this.inputEl().dom.value = this.inputValue;
-
         return;
     }