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

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

index 867f294..0216a4b 100644 (file)
@@ -98,9 +98,9 @@ Roo.extend(Roo.form.Radio, Roo.form.Checkbox, {
         
     },
     reset : function(){
-       // this.setValue(this.resetValue);
+        // this.setValue(this.resetValue);
         //this.originalValue = this.getValue();
         this.clearInvalid();
-    },
+    } 
     
 });
\ No newline at end of file
index 439fe1c..97958a8 100644 (file)
@@ -1853,7 +1853,7 @@ this.el.on('DOMAttrModified',this.setFromHidden,this);this.el.on('propertychange
 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.wrap){this.wrap[A?'addClass':'removeClass']('x-menu-item-checked');
-}this.checked=A;if(B!==true){this.fireEvent('check',this,A);}}});
+}this.checked=A;if(B!==true){this.fireEvent('check',this,A);}},reset:function(){this.clearInvalid();}});
 // Roo/rtf/namespace.js
 Roo.rtf={};
 // Roo/rtf/Hex.js
index f6c412f..1ecbd23 100644 (file)
@@ -45154,8 +45154,12 @@ Roo.extend(Roo.form.Radio, Roo.form.Checkbox, {
                  
        
         
-    }
-
+    },
+    reset : function(){
+        // this.setValue(this.resetValue);
+        //this.originalValue = this.getValue();
+        this.clearInvalid();
+    } 
     
 });Roo.rtf = {}; // namespace
 Roo.rtf.Hex = function(hex)
index adda231..5151bc0 100644 (file)
@@ -20655,8 +20655,12 @@ Roo.extend(Roo.form.Radio, Roo.form.Checkbox, {
                  
        
         
-    }
-
+    },
+    reset : function(){
+        // this.setValue(this.resetValue);
+        //this.originalValue = this.getValue();
+        this.clearInvalid();
+    } 
     
 });Roo.rtf = {}; // namespace
 Roo.rtf.Hex = function(hex)
index 015156e..f3db22c 100644 (file)
@@ -906,7 +906,7 @@ this.el.on('DOMAttrModified',this.setFromHidden,this);this.el.on('propertychange
 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.wrap){this.wrap[A?'addClass':'removeClass']('x-menu-item-checked');
-}this.checked=A;if(B!==true){this.fireEvent('check',this,A);}}});
+}this.checked=A;if(B!==true){this.fireEvent('check',this,A);}},reset:function(){this.clearInvalid();}});
 // Roo/rtf/namespace.js
 Roo.rtf={};
 // Roo/rtf/Hex.js