Author: pyaschenko
Date: 2008-04-15 11:50:31 -0400 (Tue, 15 Apr 2008)
New Revision: 7842
Modified:
branches/3.1.x/samples/suggestionbox-sample/src/main/webapp/pages/index.jsp
branches/3.1.x/ui/suggestionbox/src/main/resources/org/richfaces/renderkit/html/scripts/suggestionbox.js
Log:
http://jira.jboss.com/jira/browse/RF-3046
Modified: branches/3.1.x/samples/suggestionbox-sample/src/main/webapp/pages/index.jsp
===================================================================
--- branches/3.1.x/samples/suggestionbox-sample/src/main/webapp/pages/index.jsp 2008-04-15
15:25:13 UTC (rev 7841)
+++ branches/3.1.x/samples/suggestionbox-sample/src/main/webapp/pages/index.jsp 2008-04-15
15:50:31 UTC (rev 7842)
@@ -79,7 +79,9 @@
width="#{suggestionBox.width}"
height="#{suggestionBox.height}"
shadowDepth="#{suggestionBox.shadowDepth}"
- cellpadding="#{suggestionBox.cellpadding}">
+ cellpadding="#{suggestionBox.cellpadding}"
+ requestDelay="2000"
+ nothingLabel="nothing">
<a4j:ajaxListener type="org.richfaces.AjaxListener"/>
<h:column>
Modified:
branches/3.1.x/ui/suggestionbox/src/main/resources/org/richfaces/renderkit/html/scripts/suggestionbox.js
===================================================================
---
branches/3.1.x/ui/suggestionbox/src/main/resources/org/richfaces/renderkit/html/scripts/suggestionbox.js 2008-04-15
15:25:13 UTC (rev 7841)
+++
branches/3.1.x/ui/suggestionbox/src/main/resources/org/richfaces/renderkit/html/scripts/suggestionbox.js 2008-04-15
15:50:31 UTC (rev 7842)
@@ -630,7 +630,7 @@
this.prevIndex = -1;
var nothingLabel = $(this.update.id + "NothingLabel");
- if (nothingLabel) {
+ if (nothingLabel && this.hasFocus && !this.wasBlur) {
if (this.entryCount < 1) {
Element.show(nothingLabel);
Event.observe(nothingLabel, "click", this.onNothingLabelClick);