Roo/bootstrap/CheckBox.js
authoredward <edward@roojs.com>
Fri, 18 Sep 2015 04:00:08 +0000 (12:00 +0800)
committeredward <edward@roojs.com>
Fri, 18 Sep 2015 04:00:08 +0000 (12:00 +0800)
Roo/bootstrap/CheckBox.js

index 36db2e7..f061f5e 100644 (file)
@@ -230,27 +230,25 @@ Roo.extend(Roo.bootstrap.CheckBox, Roo.bootstrap.Input,  {
     
     onClick : function()
     {   
-        this.startValue = this.getValue();
-        
         this.setChecked(!this.checked);
     },
     
     setChecked : function(state,suppressEvent)
-    {
+    {   
         if(this.inputType == 'radio'){
             
             Roo.each(this.el.up('form').select('input[name='+this.name+']', true).elements, function(e){
                 e.dom.checked = false;
             });
             
-            this.inputEl().dom.checked = true;
-            
-            this.inputEl().dom.value = this.inputValue;
-            
             if(suppressEvent !== true){
                 this.fireEvent('check', this, true);
             }
             
+            this.inputEl().dom.checked = true;
+            
+            this.inputEl().dom.value = this.inputValue;
+            
             return;
         }