Author: abelevich
Date: 2008-04-29 11:02:32 -0400 (Tue, 29 Apr 2008)
New Revision: 8330
Modified:
trunk/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselect.js
trunk/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselectlist.js
Log:
http://jira.jboss.com/jira/browse/RF-3255
Modified:
trunk/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselect.js
===================================================================
---
trunk/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselect.js 2008-04-29
15:02:12 UTC (rev 8329)
+++
trunk/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselect.js 2008-04-29
15:02:32 UTC (rev 8330)
@@ -193,14 +193,29 @@
},
deleteViewArtifacts : function () {
- var text = this.inplaceInput.childNodes[6];
+ var text;
+ // IE6 support
+ if (this.comboList.iframe) {
+ text = this.inplaceInput.childNodes[7];
+ } else {
+ text = this.inplaceInput.childNodes[6];
+ }
+
if (text) {
this.inplaceInput.removeChild(text);
}
},
getCurrentText : function() {
- return this.inplaceInput.childNodes[6];
+ var currentText;
+ // IE6 support
+ if (this.comboList.iframe) {
+ this.inplaceInput.childNodes[7];
+ } else {
+ this.inplaceInput.childNodes[6];
+ }
+
+ return
},
getLabelItem : function(value) {
Modified:
trunk/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselectlist.js
===================================================================
---
trunk/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselectlist.js 2008-04-29
15:02:12 UTC (rev 8329)
+++
trunk/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselectlist.js 2008-04-29
15:02:32 UTC (rev 8330)
@@ -26,7 +26,12 @@
this.listParent.style.top = top + "px";
this.listParent.style.left = 0 + "px";
- if (this.iframe) {
+
+ if (Richfaces.browser.isIE6) {
+ if (!this.iframe) {
+ this.createIframe(this.listParent.parentNode, this.width, this.list.id,
"");
+ }
+
this.iframe.style.top = top + "px";
this.iframe.style.left = 0 + "px";
}