roojs-bootstrap.js
authoredward <edward@roojs.com>
Fri, 17 Nov 2017 10:02:38 +0000 (18:02 +0800)
committeredward <edward@roojs.com>
Fri, 17 Nov 2017 10:02:38 +0000 (18:02 +0800)
roojs-bootstrap-debug.js

roojs-bootstrap-debug.js
roojs-bootstrap.js

index 050a5e8..47f49f7 100644 (file)
@@ -20190,6 +20190,15 @@ Roo.apply(Roo.bootstrap.CheckBox, {
 Roo.bootstrap.Radio = function(config){
     Roo.bootstrap.Radio.superclass.constructor.call(this, config);
     
+    this.addEvents({
+        /**
+        * @event check
+        * Fires when the element is checked or unchecked.
+        * @param {Roo.bootstrap.Radio} this This radio
+        * @param {Boolean} checked The new checked value
+        */
+       check : true
+    });
 };
 
 Roo.extend(Roo.bootstrap.Radio, Roo.bootstrap.Component, {
index a4c852c..eae56a3 100644 (file)
@@ -830,7 +830,7 @@ return;}var A=this;if(this.rendered){Roo.each(this.el.up('form').select('input[n
 e.dom.disabled=false;});}this.disabled=false;this.fireEvent("enable",this);return this;}});Roo.apply(Roo.bootstrap.CheckBox,{groups:{},register:function(A){if(typeof(this.groups[A.groupId])=='undefined'){this.groups[A.groupId]={};}if(this.groups[A.groupId].hasOwnProperty(A.name)){return;
 }this.groups[A.groupId][A.name]=A;},get:function(A){if(typeof(this.groups[A])=='undefined'){return false;}return this.groups[A];}});
 // Roo/bootstrap/Radio.js
-Roo.bootstrap.Radio=function(A){Roo.bootstrap.Radio.superclass.constructor.call(this,A);};Roo.extend(Roo.bootstrap.Radio,Roo.bootstrap.Component,{boxLabel:'',value:'',getAutoCreate:function(){var A={tag:'div',cls:'form-group radio',cn:[{tag:'label',cls:'box-label',html:this.boxLabel}
+Roo.bootstrap.Radio=function(A){Roo.bootstrap.Radio.superclass.constructor.call(this,A);this.addEvents({check:true});};Roo.extend(Roo.bootstrap.Radio,Roo.bootstrap.Component,{boxLabel:'',value:'',getAutoCreate:function(){var A={tag:'div',cls:'form-group radio',cn:[{tag:'label',cls:'box-label',html:this.boxLabel}
 ]};return A;},initEvents:function(){this.parent().register(this);this.el.on('click',this.onClick,this);},onClick:function(){this.setChecked(true);},setChecked:function(A,B){this.parent().setValue(this.value);if(B!==true){this.fireEvent('check',this,A);}}}
 );
 // Roo/HtmlEditorCore.js