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

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Tue Jun 12 11:03:18 EDT 2007


Author: a.izobov
Date: 2007-06-12 11:03:18 -0400 (Tue, 12 Jun 2007)
New Revision: 1139

Modified:
   trunk/richfaces/suggestionbox/src/main/resources/org/richfaces/renderkit/html/scripts/suggestionbox.js
Log:
http://jira.jboss.com/jira/browse/RF-62 fixed

Modified: trunk/richfaces/suggestionbox/src/main/resources/org/richfaces/renderkit/html/scripts/suggestionbox.js
===================================================================
--- trunk/richfaces/suggestionbox/src/main/resources/org/richfaces/renderkit/html/scripts/suggestionbox.js	2007-06-12 14:54:01 UTC (rev 1138)
+++ trunk/richfaces/suggestionbox/src/main/resources/org/richfaces/renderkit/html/scripts/suggestionbox.js	2007-06-12 15:03:18 UTC (rev 1139)
@@ -452,6 +452,7 @@
         } else {
             this.element.value = value;
         }
+        this.oldValue = this.element.value;
         this.element.focus();
 
         if (this.options.afterUpdateElement)
@@ -508,7 +509,7 @@
         var oldValue = this.element.value;
         if (this.getToken().length >= this.options.minChars) {
             LOG.debug("Call data for update choices");
-        	if (this.oldValue != oldValue && oldValue.length > 0) {
+			if ((event.keyCode == Event.KEY_DOWN || this.oldValue != oldValue) && oldValue.length > 0) {
 	            this.startIndicator();
     	        this.getUpdatedChoices(event);
         	}




More information about the richfaces-svn-commits mailing list