incubator-xap-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmarga...@apache.org
Subject svn commit: r486315 - /incubator/xap/trunk/src/xap/bridges/xap/RadioButtonBridge.js
Date Tue, 12 Dec 2006 21:18:30 GMT
Author: jmargaris
Date: Tue Dec 12 13:18:29 2006
New Revision: 486315

URL: http://svn.apache.org/viewvc?view=rev&rev=486315
Log:
xap-160 fix, true/false were not set correctly

Modified:
    incubator/xap/trunk/src/xap/bridges/xap/RadioButtonBridge.js

Modified: incubator/xap/trunk/src/xap/bridges/xap/RadioButtonBridge.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/src/xap/bridges/xap/RadioButtonBridge.js?view=diff&rev=486315&r1=486314&r2=486315
==============================================================================
--- incubator/xap/trunk/src/xap/bridges/xap/RadioButtonBridge.js (original)
+++ incubator/xap/trunk/src/xap/bridges/xap/RadioButtonBridge.js Tue Dec 12 13:18:29 2006
@@ -96,14 +96,14 @@
 		} else {
 			if (this.getPeer().selected) {
 				this.getPeer().setOff(); 
-				this.writeBackAttribute("selected", "true");
+				this.writeBackAttribute("selected", "false");
 			} else {
 				this.getPeer().setOn(); 
-				this.writeBackAttribute("selected", "false");			
+				this.writeBackAttribute("selected", "true");			
 			} 
 			 
 			var clientEvent = new xap.session.ClientEvent(this.getElement(), session);
-			clientEvent.selected = "true";
+			clientEvent.selected = this.getPeer().selected?"true":"false";
 			// fire onSelect event
 			this.fireEvent("onSelect", null, null, clientEvent);
 			// fire onStateChange event.



Mime
View raw message