Author: sergeyhalipov
Date: 2007-05-24 13:05:56 -0400 (Thu, 24 May 2007)
New Revision: 871
Modified:
trunk/richfaces/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts/modalPanel.js
Log:
http://jira.jboss.com/jira/browse/RF-208
Modified:
trunk/richfaces/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts/modalPanel.js
===================================================================
---
trunk/richfaces/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts/modalPanel.js 2007-05-24
14:40:13 UTC (rev 870)
+++
trunk/richfaces/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts/modalPanel.js 2007-05-24
17:05:56 UTC (rev 871)
@@ -255,6 +255,7 @@
//this.disableDocumentFocusElements();
if (!this.floatedToBody) {
+ this.parent = this.id.parentNode;
document.body.appendChild(this.id.parentNode.removeChild(this.id));
this.floatedToBody = true;
}
@@ -436,6 +437,12 @@
}
Element.hide(this.id);
+
+ if (this.floatedToBody && this.parent) {
+ document.body.removeChild(this.id);
+ this.parent.appendChild(this.id);
+ this.floatedToBody = false;
+ }
},
doResizeOrMove: function(diff) {