Author: A.Skokov
Date: 2007-04-27 08:37:05 -0400 (Fri, 27 Apr 2007)
New Revision: 583
Modified:
trunk/richfaces/suggestionbox/src/main/java/org/richfaces/renderkit/html/SuggestionBoxRenderer.java
trunk/richfaces/suggestionbox/src/main/resources/org/richfaces/renderkit/html/scripts/suggestionbox.js
Log:
http://jira.jboss.com/jira/browse/RF-119 fixed
Modified:
trunk/richfaces/suggestionbox/src/main/java/org/richfaces/renderkit/html/SuggestionBoxRenderer.java
===================================================================
---
trunk/richfaces/suggestionbox/src/main/java/org/richfaces/renderkit/html/SuggestionBoxRenderer.java 2007-04-26
23:17:00 UTC (rev 582)
+++
trunk/richfaces/suggestionbox/src/main/java/org/richfaces/renderkit/html/SuggestionBoxRenderer.java 2007-04-27
12:37:05 UTC (rev 583)
@@ -192,7 +192,7 @@
}
writer.writeAttribute("class", clazz, "popupClass");
- StringBuffer style = new StringBuffer("display:none; z-index:
200;");
+ StringBuffer style = new StringBuffer("display:none; z-index:
201;");
style.append(getSizeForStyle(component, "width", null, false));
style.append(getSizeForStyle(component, "height", null, false));
@@ -222,7 +222,7 @@
writer.writeAttribute("id", component.getClientId(context)
+ "_iframe", null);
writer.writeAttribute(
- "style",
"position:absolute;display:none;z-index:0;", null);
+ "style",
"position:absolute;display:none;z-index:200;", null);
writer.endElement("iframe");
} else {
suggestionBox.setSubmitted(false);
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-26
23:17:00 UTC (rev 582)
+++
trunk/richfaces/suggestionbox/src/main/resources/org/richfaces/renderkit/html/scripts/suggestionbox.js 2007-04-27
12:37:05 UTC (rev 583)
@@ -508,23 +508,23 @@
this.content = content;
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);
}
-
+
return this;
},
getUpdatedChoices: function(event) {
this.options.parameters[this.options.param] = this.getToken();
-
+
if (this.onsubmitFunction && ! this.onsubmitFunction()) {
return;
}
- if (this.oldValue != this.input.value && this.input.value.length > 0) {
+ if (this.oldValue != this.input.value && this.input.value.length > 0) {
A4J.AJAX.Submit(this.containerId, this.actionUrl, event, this.options);
}
this.oldValue = this.input.value;
@@ -595,9 +595,9 @@
if (options.iframeId) {
var iframe = $(options.iframeId);
Position.clone(this.target, iframe);
- Element.setStyle(this.target, {zIndex: 100});
+ Element.setStyle(this.target, {zIndex: 201});
- Element.setStyle(iframe, {zIndex: 0});
+ Element.setStyle(iframe, {zIndex: 200});
iframe.style.position = "absolute";
iframe.style.top = this.target.style.top;
iframe.style.left = this.target.style.left;