diff options
Diffstat (limited to 'lib/scripts/script.js')
-rw-r--r-- | lib/scripts/script.js | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/scripts/script.js b/lib/scripts/script.js index 8c0485671..c917c365a 100644 --- a/lib/scripts/script.js +++ b/lib/scripts/script.js @@ -188,9 +188,17 @@ function prependChild(parent,element) { /** * Prints a animated gif to show the search is performed * + * Because we need to modify the DOM here before the document is loaded + * and parsed completely we have to rely on document.write() + * * @author Andreas Gohr <andi@splitbrain.org> */ -function showLoadBar(id){ +function showLoadBar(){ + + document.write('<img src="'+DOKU_BASE+'lib/images/loading.gif" '+ + width="150" height="12" alt="..." />'); + + /* this does not work reliable in IE obj = $(id); if(obj){ @@ -198,6 +206,7 @@ function showLoadBar(id){ 'width="150" height="12" alt="..." />'; obj.style.display="block"; } + */ } /** |