From: jakubvrana Date: Fri, 11 Sep 2009 20:08:19 +0000 (+0000) Subject: Typo X-Git-Tag: v3.0.0~435 X-Git-Url: https://git.joonet.de/?a=commitdiff_plain;h=2bea4144f16429cfafc0be834f532ccbdb0127d6;p=adminer.git Typo git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1098 7c3ca157-0c34-0410-bff1-cbf682f78f5c --- diff --git a/adminer/editing.js b/adminer/editing.js index ce05f768..50df0099 100644 --- a/adminer/editing.js +++ b/adminer/editing.js @@ -5,17 +5,17 @@ function body_load() { var script = document.createElement('script'); script.src = jush_root + 'jush.js'; script.onload = function () { - if (this.jush) { // IE runs in case of an error too + if (window.jush) { // IE runs in case of an error too jush.style(jush_root + 'jush.css'); jush.highlight_tag('pre'); jush.highlight_tag('code'); } - } + }; script.onreadystatechange = function () { if (/^(loaded|complete)$/.test(script.readyState)) { script.onload(); } - } + }; document.body.appendChild(script); }