[richfaces-svn-commits] JBoss Rich Faces SVN: r5246 - trunk/ui/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts.

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Wed Jan 9 15:11:33 EST 2008


Author: nbelaevski
Date: 2008-01-09 15:11:33 -0500 (Wed, 09 Jan 2008)
New Revision: 5246

Modified:
   trunk/ui/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts/modalPanel.js
Log:
http://jira.jboss.com/jira/browse/RF-1864

Modified: trunk/ui/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts/modalPanel.js
===================================================================
--- trunk/ui/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts/modalPanel.js	2008-01-09 19:55:46 UTC (rev 5245)
+++ trunk/ui/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts/modalPanel.js	2008-01-09 20:11:33 UTC (rev 5246)
@@ -208,14 +208,17 @@
 		}
 		this.borders = null;
 
-		if (this.floatedToBody) {
-			var element = this.id;
-			var parent = element.parentNode;
-			if (parent) {
-				parent.removeChild(element);
-				discardElement(element);
+		setTimeout(function() {
+			if (this.floatedToBody) {
+				var element = this.id;
+				var parent = element.parentNode;
+				if (parent) {
+					parent.removeChild(element);
+					discardElement(element);
+				}
 			}
-		}
+		}.bind(this), 0);
+		
         this.markerId.component = null;
         this.markerId = null;
 	},




More information about the richfaces-svn-commits mailing list