[richfaces-svn-commits] JBoss Rich Faces SVN: r18824 - in trunk/ui/input/ui/src/main: resources/META-INF/resources/org.richfaces and 1 other directory.

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Thu Aug 19 13:10:15 EDT 2010


Author: amarkhel
Date: 2010-08-19 13:10:14 -0400 (Thu, 19 Aug 2010)
New Revision: 18824

Modified:
   trunk/ui/input/ui/src/main/java/org/richfaces/component/AbstractAutocomplete.java
   trunk/ui/input/ui/src/main/resources/META-INF/resources/org.richfaces/Autocomplete.js
Log:
RF-9102

Modified: trunk/ui/input/ui/src/main/java/org/richfaces/component/AbstractAutocomplete.java
===================================================================
--- trunk/ui/input/ui/src/main/java/org/richfaces/component/AbstractAutocomplete.java	2010-08-19 17:08:16 UTC (rev 18823)
+++ trunk/ui/input/ui/src/main/java/org/richfaces/component/AbstractAutocomplete.java	2010-08-19 17:10:14 UTC (rev 18824)
@@ -82,7 +82,7 @@
     @Attribute
     public abstract String getFilterFunction();
 	
-    @Attribute(defaultValue = "rf-au-c")
+    @Attribute(defaultValue = "rf-au-s")
     public abstract String getSelectedItemClass();
 
     @Attribute

Modified: trunk/ui/input/ui/src/main/resources/META-INF/resources/org.richfaces/Autocomplete.js
===================================================================
--- trunk/ui/input/ui/src/main/resources/META-INF/resources/org.richfaces/Autocomplete.js	2010-08-19 17:08:16 UTC (rev 18823)
+++ trunk/ui/input/ui/src/main/resources/META-INF/resources/org.richfaces/Autocomplete.js	2010-08-19 17:10:14 UTC (rev 18824)
@@ -129,7 +129,7 @@
 	};
 
 	var onMouseAction = function(event) {
-		var element = $(event.target).closest(".rf-ac-i", event.currentTarget).get(0);
+		var element = $(event.target).closest(".rf-au-i", event.currentTarget).get(0);
 
 		if (element) {
 			if (event.type=="mouseover") {
@@ -146,7 +146,7 @@
 	};
 
 	var updateItemsList = function (value, fetchValues) {
-		this.items = $(rf.getDomElement(this.id+ID.ITEMS)).find(".rf-ac-i");
+		this.items = $(rf.getDomElement(this.id+ID.ITEMS)).find(".rf-au-i");
 		if (this.items.length>0) {
 			this.cache = new rf.utils.Cache(value, this.items, fetchValues || getData);
 		}
@@ -343,7 +343,7 @@
 				var subValue = this.__getSubValue();
 				// called from onShow method, not actually value changed
 				if (this.items.length==0 && this.isFirstAjax) {
-					this.options.ajaxMode && callAjax.call(this, event, subValue);
+					callAjax.call(this, event, subValue);
 				}
 				return;
 			},



More information about the richfaces-svn-commits mailing list