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

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Fri Feb 1 14:44:10 EST 2008


Author: vmolotkov
Date: 2008-02-01 14:44:10 -0500 (Fri, 01 Feb 2008)
New Revision: 5770

Modified:
   trunk/sandbox/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts/combobox.js
Log:
handling of default message is corrected

Modified: trunk/sandbox/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts/combobox.js
===================================================================
--- trunk/sandbox/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts/combobox.js	2008-02-01 16:59:08 UTC (rev 5769)
+++ trunk/sandbox/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts/combobox.js	2008-02-01 19:44:10 UTC (rev 5770)
@@ -174,7 +174,7 @@
 	
 	fieldFocusHandler : function() {
 		this.doActive();
-		if (this.field.value == this.defaultMessage) {
+		if ((this.field.value == this.defaultMessage) && (this.comboValue.value == "")) {
 			this.field.value = "";
 		} else {
 			if (this.isSelection) {
@@ -302,7 +302,6 @@
 	
 	isActive : function() {
 		return (this.field.className == this.classes.FIELD.CLASSES.ACTIVE); 
-		
 	},
 	
 	doActive : function() {




More information about the richfaces-svn-commits mailing list