roojs-ui.js
authorAlan <alan@roojs.com>
Fri, 23 Sep 2022 03:26:36 +0000 (11:26 +0800)
committerAlan <alan@roojs.com>
Fri, 23 Sep 2022 03:26:36 +0000 (11:26 +0800)
roojs-ui-debug.js
roojs-all.js
roojs-debug.js
Roo/form/Radio.js

Roo/form/Radio.js
roojs-all.js
roojs-debug.js
roojs-ui-debug.js
roojs-ui.js

index c2bc62d..0b4148d 100644 (file)
@@ -76,20 +76,15 @@ Roo.extend(Roo.form.Radio, Roo.form.Checkbox, {
         //    this.el.dom.defaultChecked = this.checked;
         //}
         this.setChecked(String(v) === String(this.inputValue), suppressEvent);
-        this.inSetChecked = true;
+        
         this.el.dom.form[this.name] = v;
-        this.inSetChecked = false;
+     
         //this.fireEvent("check", this, this.checked);
     },
     // private..
     setChecked : function(state,suppressEvent)
     {
-        if (this.inSetChecked) {
-            this.checked = state;
-            return;
-        }
-        
-    
+         
         if(this.wrap){
             this.wrap[state ? 'addClass' : 'removeClass']('x-menu-item-checked');
         }
index 27aaaf8..d6ff716 100644 (file)
@@ -1852,8 +1852,8 @@ this.el.on('DOMAttrModified',this.setFromHidden,this);this.el.on('propertychange
 // Roo/form/Radio.js
 Roo.form.Radio=function(){Roo.form.Radio.superclass.constructor.apply(this,arguments);};Roo.extend(Roo.form.Radio,Roo.form.Checkbox,{inputType:'radio',getGroupValue:function(){return this.el.up('form').child('input[name='+this.el.dom.name+']:checked',true).value;
 },onRender:function(ct,A){Roo.form.Checkbox.superclass.onRender.call(this,ct,A);if(this.inputValue!==undefined){this.el.dom.value=this.inputValue;}this.wrap=this.el.wrap({cls:"x-form-check-wrap"});if(this.boxLabel){this.wrap.createChild({tag:'label',htmlFor:this.el.id,cls:'x-form-cb-label',html:this.boxLabel}
-);}if(this.checked){this.el.dom.checked='checked';}},setValue:function(v,A){this.setChecked(String(v)===String(this.inputValue),A);this.el.dom.form[this.name]=v;},setChecked:function(A,B){if(this.inSetChecked){this.checked=A;return;}if(this.wrap){this.wrap[A?'addClass':'removeClass']('x-menu-item-checked');
-}this.checked=A;if(B!==true){this.fireEvent('check',this,A);}this.inSetChecked=true;this.inSetChecked=false;}});
+);}if(this.checked){this.el.dom.checked='checked';}},setValue:function(v,A){this.setChecked(String(v)===String(this.inputValue),A);this.inSetChecked=true;this.el.dom.form[this.name]=v;this.inSetChecked=false;},setChecked:function(A,B){if(this.inSetChecked){this.checked=A;
+return;}if(this.wrap){this.wrap[A?'addClass':'removeClass']('x-menu-item-checked');}this.checked=A;if(B!==true){this.fireEvent('check',this,A);}}});
 // Roo/rtf/namespace.js
 Roo.rtf={};
 // Roo/rtf/Hex.js
index c9d160c..3ab7559 100644 (file)
@@ -45134,7 +45134,9 @@ Roo.extend(Roo.form.Radio, Roo.form.Checkbox, {
         //    this.el.dom.defaultChecked = this.checked;
         //}
         this.setChecked(String(v) === String(this.inputValue), suppressEvent);
+        this.inSetChecked = true;
         this.el.dom.form[this.name] = v;
+        this.inSetChecked = false;
         //this.fireEvent("check", this, this.checked);
     },
     // private..
@@ -45153,10 +45155,9 @@ Roo.extend(Roo.form.Radio, Roo.form.Checkbox, {
         if(suppressEvent !== true){
             this.fireEvent('check', this, state);
         }
-        this.inSetChecked = true;
                 
                  
-        this.inSetChecked = false;
+       
         
     }
 
index d01af81..95fb95b 100644 (file)
@@ -20635,7 +20635,9 @@ Roo.extend(Roo.form.Radio, Roo.form.Checkbox, {
         //    this.el.dom.defaultChecked = this.checked;
         //}
         this.setChecked(String(v) === String(this.inputValue), suppressEvent);
+        this.inSetChecked = true;
         this.el.dom.form[this.name] = v;
+        this.inSetChecked = false;
         //this.fireEvent("check", this, this.checked);
     },
     // private..
@@ -20654,10 +20656,9 @@ Roo.extend(Roo.form.Radio, Roo.form.Checkbox, {
         if(suppressEvent !== true){
             this.fireEvent('check', this, state);
         }
-        this.inSetChecked = true;
                 
                  
-        this.inSetChecked = false;
+       
         
     }
 
index 11fbf78..b47d962 100644 (file)
@@ -905,8 +905,8 @@ this.el.on('DOMAttrModified',this.setFromHidden,this);this.el.on('propertychange
 // Roo/form/Radio.js
 Roo.form.Radio=function(){Roo.form.Radio.superclass.constructor.apply(this,arguments);};Roo.extend(Roo.form.Radio,Roo.form.Checkbox,{inputType:'radio',getGroupValue:function(){return this.el.up('form').child('input[name='+this.el.dom.name+']:checked',true).value;
 },onRender:function(ct,A){Roo.form.Checkbox.superclass.onRender.call(this,ct,A);if(this.inputValue!==undefined){this.el.dom.value=this.inputValue;}this.wrap=this.el.wrap({cls:"x-form-check-wrap"});if(this.boxLabel){this.wrap.createChild({tag:'label',htmlFor:this.el.id,cls:'x-form-cb-label',html:this.boxLabel}
-);}if(this.checked){this.el.dom.checked='checked';}},setValue:function(v,A){this.setChecked(String(v)===String(this.inputValue),A);this.el.dom.form[this.name]=v;},setChecked:function(A,B){if(this.inSetChecked){this.checked=A;return;}if(this.wrap){this.wrap[A?'addClass':'removeClass']('x-menu-item-checked');
-}this.checked=A;if(B!==true){this.fireEvent('check',this,A);}this.inSetChecked=true;this.inSetChecked=false;}});
+);}if(this.checked){this.el.dom.checked='checked';}},setValue:function(v,A){this.setChecked(String(v)===String(this.inputValue),A);this.inSetChecked=true;this.el.dom.form[this.name]=v;this.inSetChecked=false;},setChecked:function(A,B){if(this.inSetChecked){this.checked=A;
+return;}if(this.wrap){this.wrap[A?'addClass':'removeClass']('x-menu-item-checked');}this.checked=A;if(B!==true){this.fireEvent('check',this,A);}}});
 // Roo/rtf/namespace.js
 Roo.rtf={};
 // Roo/rtf/Hex.js