Author: knopp
Date: Fri Nov 30 06:01:09 2007
New Revision: 599824
URL: http://svn.apache.org/viewvc?rev=599824&view=rev
Log:
fixed problem when replacing table in IE
Modified:
wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/wicket-ajax.js
Modified:
wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/wicket-ajax.js
URL:
http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/wicket-ajax.js?rev=599824&r1=599823&r2=599824&view=diff
==============================================================================
---
wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/wicket-ajax.js
(original)
+++
wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/wicket-ajax.js
Fri Nov 30 06:01:09 2007
@@ -170,7 +170,7 @@
}
Wicket.replaceOuterHtmlIE = function(element, text) {
-
+
if (element.tagName == "SCRIPT") {
// we need to get the javascript content, so we create an
invalid DOM structure,
// (that is necessary for IE to let us see the innerHTML of the
script tag
@@ -190,15 +190,13 @@
var tempParent;
// array for javascripts that were in the text
- var scripts = new Array();
+ var scripts = new Array();
if (tn != 'TBODY' && tn != 'TR' && tn != "TD" && tn != "THEAD") {
-
- element.innerHTML = "";
-
- // in case the element is not any of these
+
+ // in case the element is not any of these
- document.body.appendChild(tempDiv);
+ document.body.appendChild(tempDiv);
// this is not exactly nice, but we need to get invalid markup
inside innerHTML,
// because otherwise IE just swallows the <script> tags
(sometimes)
@@ -264,7 +262,7 @@
for (i = 0; i < scripts.length; ++i) {
Wicket.Head.addJavascripts(scripts[i]);
- }
+ }
}
Wicket.replaceOuterHtmlSafari = function(element, text) {