[richfaces-svn-commits] JBoss Rich Faces SVN: r733 - 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
Fri May 11 08:01:44 EDT 2007
Author: A.Skokov
Date: 2007-05-11 08:01:44 -0400 (Fri, 11 May 2007)
New Revision: 733
Modified:
trunk/richfaces/suggestionbox/src/main/resources/org/richfaces/renderkit/html/scripts/suggestionbox.js
Log:
http://jira.jboss.com/jira/browse/RF-154 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-05-11 12:01:21 UTC (rev 732)
+++ trunk/richfaces/suggestionbox/src/main/resources/org/richfaces/renderkit/html/scripts/suggestionbox.js 2007-05-11 12:01:44 UTC (rev 733)
@@ -14,6 +14,7 @@
this.prevIndex = -1;
this.entryCount = 0;
this.keyEvent = false;
+ this.oldValue = this.element.value;
var needIframe = (RichFaces.navigatorType() == "MSIE");
@@ -225,6 +226,7 @@
this.changed = true;
this.hasFocus = true;
+ this.oldValue = this.element.value;
if (this.observerHandle) {
LOG.debug("clear existing observer");
@@ -509,10 +511,8 @@
this.containerId = containerId;
this.actionUrl = actionUrl;
- this.input = $(element);
- this.oldValue = $(element).value;
if (onsubmit && onsubmit != 'null'){
- this.onsubmitFunction = new Function(onsubmit).bind(this.input);
+ this.onsubmitFunction = new Function(onsubmit).bind(this.element);
}
return this;
@@ -524,10 +524,9 @@
if (this.onsubmitFunction && ! this.onsubmitFunction()) {
return;
}
- if (this.oldValue != this.input.value && this.input.value.length > 0) {
+ if (this.oldValue != this.element.value && this.element.value.length > 0) {
A4J.AJAX.Submit(this.containerId, this.actionUrl, event, this.options);
}
- this.oldValue = this.input.value;
return;
},
More information about the richfaces-svn-commits
mailing list