cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jer...@apache.org
Subject svn commit: r307419 - /cocoon/blocks/ajax/trunk/java/org/apache/cocoon/ajax/resources/js/browserupdater.js
Date Sun, 09 Oct 2005 13:16:32 GMT
Author: jeremy
Date: Sun Oct  9 06:16:29 2005
New Revision: 307419

URL: http://svn.apache.org/viewcvs?rev=307419&view=rev
Log:
fixed Cocoon.Ajax.Insertion.Replace with Safari 

Modified:
    cocoon/blocks/ajax/trunk/java/org/apache/cocoon/ajax/resources/js/browserupdater.js

Modified: cocoon/blocks/ajax/trunk/java/org/apache/cocoon/ajax/resources/js/browserupdater.js
URL: http://svn.apache.org/viewcvs/cocoon/blocks/ajax/trunk/java/org/apache/cocoon/ajax/resources/js/browserupdater.js?rev=307419&r1=307418&r2=307419&view=diff
==============================================================================
--- cocoon/blocks/ajax/trunk/java/org/apache/cocoon/ajax/resources/js/browserupdater.js (original)
+++ cocoon/blocks/ajax/trunk/java/org/apache/cocoon/ajax/resources/js/browserupdater.js Sun
Oct  9 06:16:29 2005
@@ -151,8 +151,7 @@
   		var newDiv = document.createElement('div');
   		newDiv.innerHTML = this.content;
   		var newElement = newDiv.firstChild;
-  		this.element.parentNode.insertBefore(newElement, this.element);
-  		this.element.parentNode.removeChild(this.element);
+  		this.element.parentNode.replaceChild(newElement, this.element);
   	} else { // hopefully 'content' is a DOM Fragment
 			var newElement = DOMUtils.importNode(this.content, document);
 			this.element.parentNode.replaceChild(newElement, this.element);



Mime
View raw message