Author: artdaw
Date: 2011-01-28 07:00:47 -0500 (Fri, 28 Jan 2011)
New Revision: 21300
Modified:
trunk/ui/output/ui/src/main/resources/META-INF/resources/org.richfaces/popupPanel.js
Log:
RF-10340: popupPanel is fixed
Modified:
trunk/ui/output/ui/src/main/resources/META-INF/resources/org.richfaces/popupPanel.js
===================================================================
---
trunk/ui/output/ui/src/main/resources/META-INF/resources/org.richfaces/popupPanel.js 2011-01-28
11:22:13 UTC (rev 21299)
+++
trunk/ui/output/ui/src/main/resources/META-INF/resources/org.richfaces/popupPanel.js 2011-01-28
12:00:47 UTC (rev 21300)
@@ -240,7 +240,7 @@
if (newParent != this.parent) {
this.saveInputValues(element);
- newParent.appendChild(this.shadeDiv.get(0));
+ this.shadeDiv.length &&
newParent.appendChild(this.shadeDiv.get(0));
newParent.appendChild(this.shadowDiv.get(0));
newParent.appendChild(this.cdiv.get(0));
this.domReattached = true;
@@ -488,7 +488,7 @@
if (this.domReattached) {
this.saveInputValues(element);
var div = this.div.get(0);
- div.appendChild(this.shadeDiv.get(0));
+ this.shadeDiv.length &&
div.appendChild(this.shadeDiv.get(0));
div.appendChild(this.shadowDiv.get(0));
div.appendChild(element.get(0));