[richfaces-svn-commits] JBoss Rich Faces SVN: r261 - 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
Wed Apr 4 05:28:33 EDT 2007
Author: A.Skokov
Date: 2007-04-04 05:28:33 -0400 (Wed, 04 Apr 2007)
New Revision: 261
Modified:
trunk/richfaces/suggestionbox/src/main/resources/org/richfaces/renderkit/html/scripts/suggestionbox.js
Log:
https://jira.exadel.com/browse/RFA-337 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-04-04 09:03:05 UTC (rev 260)
+++ trunk/richfaces/suggestionbox/src/main/resources/org/richfaces/renderkit/html/scripts/suggestionbox.js 2007-04-04 09:28:33 UTC (rev 261)
@@ -71,7 +71,7 @@
this.onKeyPressListener = this.onKeyPress.bindAsEventListener(this);
Event.observe(this.element, "keypress", this.onKeyPressListener);
-
+
if (this.isOpera) {
this.onKeyUpListener = this.onKeyUp.bindAsEventListener(this);
Event.observe(this.element, "keyup", this.onKeyUpListener);
@@ -94,7 +94,7 @@
cancelSubmit: function(event) {
Event.stop(event);
},
-
+
disableSubmit: function() {
if (this.isOpera) {
var el = this.element;
@@ -107,7 +107,7 @@
}
}
},
-
+
enableSubmit: function() {
if (this.isOpera) {
if (this.parentForm) {
@@ -192,7 +192,7 @@
this.upDown = 1;
this.prevOnKeyPress = this.element.onkeypress;
this.element.onkeypress = this.onBoxKeyPress.bindAsEventListener(this);
- }
+ }
return;
case Event.KEY_DOWN:
this.keyEvent = true;
@@ -203,7 +203,7 @@
this.upDown = 2;
this.prevOnKeyPress = this.element.onkeypress;
this.element.onkeypress = this.onBoxKeyPress.bindAsEventListener(this);
- }
+ }
return;
}
else
@@ -263,6 +263,7 @@
onBlur: function(event) {
if (this.isUnloaded()) return;
+ if (!this.active) return;
var offsets = Exadel.Position.calcOffsets(this.update);
if (RichFaces.navigatorType() != "MSIE") {
offsets["x"] = 0;
@@ -564,7 +565,7 @@
left += parent.offsetLeft;
top += parent.offsetTop;
}
-
+
ret["x"] = left;
ret["y"] = top + element.clientHeight;
More information about the richfaces-svn-commits
mailing list