Roo/bootstrap/RadioSet.js
authoredward <edward@roojs.com>
Fri, 17 Nov 2017 10:08:35 +0000 (18:08 +0800)
committeredward <edward@roojs.com>
Fri, 17 Nov 2017 10:08:35 +0000 (18:08 +0800)
Roo/bootstrap/RadioSet.js

index d14223b..81ec2a4 100644 (file)
@@ -30,8 +30,8 @@ Roo.bootstrap.RadioSet = function(config){
         /**
         * @event check
         * Fires when the element is checked or unchecked.
-        * @param {Roo.bootstrap.Radio} this This radio
-        * @param {Boolean} checked The new checked value
+        * @param {Roo.bootstrap.RadioSet} this This radio
+        * @param {Roo.bootstrap.Radio} item The checked item
         */
        check : true
     });
@@ -207,6 +207,10 @@ Roo.extend(Roo.bootstrap.RadioSet, Roo.bootstrap.Input,  {
             if(i.value == v){
                 i.checked = true;
                 i.el.addClass('checked');
+                
+                if(suppressEvent !== true){
+                    this.fireEvent('check', this, i);
+                }
             }
             
         }, this);