mirror of
https://github.com/vrana/adminer.git
synced 2025-08-22 22:23:19 +02:00
JUSH may be unreachable in IE
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1097 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
@@ -5,12 +5,14 @@ function body_load() {
|
|||||||
var script = document.createElement('script');
|
var script = document.createElement('script');
|
||||||
script.src = jush_root + 'jush.js';
|
script.src = jush_root + 'jush.js';
|
||||||
script.onload = function () {
|
script.onload = function () {
|
||||||
|
if (this.jush) { // IE runs in case of an error too
|
||||||
jush.style(jush_root + 'jush.css');
|
jush.style(jush_root + 'jush.css');
|
||||||
jush.highlight_tag('pre');
|
jush.highlight_tag('pre');
|
||||||
jush.highlight_tag('code');
|
jush.highlight_tag('code');
|
||||||
}
|
}
|
||||||
|
}
|
||||||
script.onreadystatechange = function () {
|
script.onreadystatechange = function () {
|
||||||
if (script.readyState == 'loaded' || script.readyState == 'complete') {
|
if (/^(loaded|complete)$/.test(script.readyState)) {
|
||||||
script.onload();
|
script.onload();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user