Author: pyaschenko
Date: 2011-01-27 14:01:28 -0500 (Thu, 27 Jan 2011)
New Revision: 21295
Modified:
trunk/ui/common/ui/src/main/resources/META-INF/resources/org.richfaces/popup.js
Log:
http://jira.jboss.com/jira/browse/RF-10337
Modified: trunk/ui/common/ui/src/main/resources/META-INF/resources/org.richfaces/popup.js
===================================================================
---
trunk/ui/common/ui/src/main/resources/META-INF/resources/org.richfaces/popup.js 2011-01-27
19:00:01 UTC (rev 21294)
+++
trunk/ui/common/ui/src/main/resources/META-INF/resources/org.richfaces/popup.js 2011-01-27
19:01:28 UTC (rev 21295)
@@ -52,7 +52,7 @@
show: function(event) {
if (!this.visible) {
if (this.attachToBody) {
- this.parentElement = this.popup.parent();
+ this.parentElement = this.popup.parent().get(0);
document.body.appendChild(this.popup.get(0));
}
this.visible = true;
@@ -66,7 +66,7 @@
this.popup.hide();
this.visible = false;
if (this.attachToBody && this.parentElement) {
- his.parentElement.appendChild(this.popup.get(0));
+ this.parentElement.appendChild(this.popup.get(0));
this.parentElement = null;
}
}