summaryrefslogtreecommitdiff
path: root/itjs
diff options
context:
space:
mode:
authorThomas BrĂ¼derli2007-08-03 11:19:24 +0000
committerThomas BrĂ¼derli2007-08-03 11:19:24 +0000
commitf89972bb4358b07924a164399163744b2a183c0f (patch)
tree43ed588a69d87ea267895fc52891f33e84016290 /itjs
parent0fd884340965af54986bd77f1f1e38bebec3b3db (diff)
downloaditools-f89972bb4358b07924a164399163744b2a183c0f.tar.gz
itools-f89972bb4358b07924a164399163744b2a183c0f.tar.bz2
itools-f89972bb4358b07924a164399163744b2a183c0f.zip
Add fallback to document.write for Opera (7)
Diffstat (limited to 'itjs')
-rw-r--r--itjs/boot.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/itjs/boot.js b/itjs/boot.js
index 73ca86b..2c1943f 100644
--- a/itjs/boot.js
+++ b/itjs/boot.js
@@ -146,7 +146,9 @@ function it_boot(file, isretry)
var doc = document;
var dom = doc && (dom = doc.getElementById('it_boot_dom')); // HTML has been rendered
- if (dom)
+ if (window.opera)
+ document.write('<sc'+'ript type="text/javascript" src="'+it_boot_addparam(file, 'init=1')+'"><\/sc'+'ript>');
+ else if (dom)
{
var tag = doc.createElement("script");
tag.src = it_boot_addparam(file, 'init=1');