[richfaces-svn-commits] JBoss Rich Faces SVN: r11938 - trunk/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts.

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Sat Dec 20 07:02:26 EST 2008


Author: abelevich
Date: 2008-12-20 07:02:26 -0500 (Sat, 20 Dec 2008)
New Revision: 11938

Modified:
   trunk/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselect.js
Log:
https://jira.jboss.org/jira/browse/RF-5284

Modified: trunk/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselect.js
===================================================================
--- trunk/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselect.js	2008-12-20 12:02:04 UTC (rev 11937)
+++ trunk/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselect.js	2008-12-20 12:02:26 UTC (rev 11938)
@@ -225,10 +225,10 @@
 			}
 			if (item.itemValue != this.value) {
 				this.startChangedState();
-				if	(this.tempValueKeeper != item.itemLabel) {
+				if	(item.itemLabel && value != item.itemValue) {
 					this.tempValueKeeper.value = item.itemLabel;
+					this.invokeEvent(this.events.onchange, this.inplaceSelect, "onchange", item.itemValue);
 				}
-				this.invokeEvent(this.events.onchange, this.inplaceSelect, "onchange", item.itemValue);
 			} else {
 				this.startViewState();
 			}




More information about the richfaces-svn-commits mailing list