diff options
author | andi <andi@splitbrain.org> | 2005-02-14 21:48:37 +0100 |
---|---|---|
committer | andi <andi@splitbrain.org> | 2005-02-14 21:48:37 +0100 |
commit | 4d9ff3d556619a6579aae8c0f6ee9b2a7b23bea6 (patch) | |
tree | c89d961fc2c1145b9e7112185d80574b62d1b7b0 /script.js | |
parent | 0a59bcd29b8e4924d14acd7e7a9fda0bb820960d (diff) | |
download | rpg-4d9ff3d556619a6579aae8c0f6ee9b2a7b23bea6.tar.gz rpg-4d9ff3d556619a6579aae8c0f6ee9b2a7b23bea6.tar.bz2 |
visual feedback on search
darcs-hash:20050214204837-9977f-6e6806a578341c8b94c5aca3121f2204fc153e8d.gz
Diffstat (limited to 'script.js')
-rw-r--r-- | script.js | 23 |
1 files changed, 23 insertions, 0 deletions
@@ -31,6 +31,29 @@ function escapeQuotes(text) { } /** + * Prints a animated gif to show the search is performed + * + * @author Andreas Gohr <andi@splitbrain.org> + */ +function showLoadBar(){ + if(document.getElementById){ + document.write('<img src="'+baseURL+'images/loading.gif" '+ + 'width="150" height="12" id="loading" />'); + } +} + +/** + * Disables the animated gif to show the search is done + * + * @author Andreas Gohr <andi@splitbrain.org> + */ +function hideLoadBar(){ + if(document.getElementById){ + document.getElementById('loading').style.display="none"; + } +} + +/** * Checks if a summary was entered - if not the style is changed * * @author Andreas Gohr <andi@splitbrain.org> |