public/javascripts/inputex/build/inputex.js
function () {
			
			// Delegate event listening because list of choices is dynamic
			// so we can't listen on each <input type="radio" class='inputEx-RadioField-radio' />
			
			// Change event (IE does not fire "change" event, so listen to click instead)
			Event.delegate(this.fieldContainer, YAHOO.env.ua.ie ? "click" : "change", function(e, matchedEl, container) {
				this.onChange(e);
			}, "input.inputEx-RadioField-radio", this, true);
			
			// Focus / Blur events
			Event.delegate(this.fieldContainer, "focusin", function(e, matchedEl, container) {
				this.onFocus(e);
			}, "input.inputEx-RadioField-radio", this, true);
			
			Event.delegate(this.fieldContainer, "focusout", function(e, matchedEl, container) {
				this.onBlur(e);
			}, "input.inputEx-RadioField-radio", this, true);
			
			// AnyField events
			if (this.allowAnyChoice) {
				
				this.anyField.updatedEvt.subscribe(function (e, params) {
					
					var value = params[0];
					this.radioAny.value = value;
					
					this.setClassFromState();
					
					inputEx.RadioField.superclass.onChange.call(this,e);
					
				}, this, true);
				
				// Update radio field style after editing anyField content !
				Event.addBlurListener(this.anyField.el, this.onBlur, this, true);
			}
		}
function () {
			
			// Delegate event listening because list of choices is dynamic
			// so we can't listen on each <input type="radio" class='inputEx-RadioField-radio' />
			
			// Change event (IE does not fire "change" event, so listen to click instead)
			Event.delegate(this.fieldContainer, YAHOO.env.ua.ie ? "click" : "change", function(e, matchedEl, container) {
				this.onChange(e);
			}, "input.inputEx-RadioField-radio", this, true);
			
			// Focus / Blur events
			Event.delegate(this.fieldContainer, "focusin", function(e, matchedEl, container) {
				this.onFocus(e);
			}, "input.inputEx-RadioField-radio", this, true);
			
			Event.delegate(this.fieldContainer, "focusout", function(e, matchedEl, container) {
				this.onBlur(e);
			}, "input.inputEx-RadioField-radio", this, true);
			
			// AnyField events
			if (this.allowAnyChoice) {
				
				this.anyField.updatedEvt.subscribe(function (e, params) {
					
					var value = params[0];
					this.radioAny.value = value;
					
					this.setClassFromState();
					
					inputEx.RadioField.superclass.onChange.call(this,e);
					
				}, this, true);
				
				// Update radio field style after editing anyField content !
				Event.addBlurListener(this.anyField.el, this.onBlur, this, true);
			}
		}
function ( ) { // Delegate event listening because list of choices is dynamic // so we can't listen on each <input type="radio" class='inputEx-RadioField-radio' /> // Change event (IE does not fire "change" event, so listen to click instead) Event . delegate ( this . fieldContainer , YAHOO . env . ua . ie ? "click" : "change" , function ( e , matchedEl , container ) { this . onChange ( e ) ; } , "input.inputEx-RadioField-radio" , this , true ) ; // Focus / Blur events Event . delegate ( this . fieldContainer , "focusin" , function ( e , matchedEl , container ) { this . onFocus ( e ) ; } , "input.inputEx-RadioField-radio" , this , true ) ; Event . delegate ( this . fieldContainer , "focusout" , function ( e , matchedEl , container ) { this . onBlur ( e ) ; } , "input.inputEx-RadioField-radio" , this , true ) ; // AnyField events if ( this . allowAnyChoice ) { this . anyField . updatedEvt . subscribe ( function ( e , params ) { var value = params [ 0 ] ; this . radioAny . value = value ; this . setClassFromState ( ) ; inputEx . RadioField . superclass . onChange . call ( this , e ) ; } , this , true ) ; // Update radio field style after editing anyField content ! Event . addBlurListener ( this . anyField . el , this . onBlur , this , true ) ; } }
Listen for change events on all radios
Listen for change events on all radios