diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-09-28 02:18:08 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-09-28 02:18:08 +0000 |
commit | 705fba8f49faa42ed7f004f67b74a996c29ddb3d (patch) | |
tree | e6409a5c1f9106a03e0abbb13cdb92e9c1a0968a /modules/kajax/ajax.js | |
parent | 9030c16466ec16db505d755d9b6405b5a40c897d (diff) | |
download | ampache-705fba8f49faa42ed7f004f67b74a996c29ddb3d.tar.gz ampache-705fba8f49faa42ed7f004f67b74a996c29ddb3d.tar.bz2 ampache-705fba8f49faa42ed7f004f67b74a996c29ddb3d.zip |
ajax loading thingy added to css, fixed random methods on rightbar and added a default sort to the browse methods
Diffstat (limited to 'modules/kajax/ajax.js')
-rw-r--r-- | modules/kajax/ajax.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/kajax/ajax.js b/modules/kajax/ajax.js index 1d6b57e8..4d7a04b1 100644 --- a/modules/kajax/ajax.js +++ b/modules/kajax/ajax.js @@ -46,6 +46,10 @@ function ajaxPut(url,source) { function getContents(http_request) {
+
+ // Display the loading doodly
+ document.getElementById('ajax-loading').style.display = 'block';
+
if (http_request.readyState == 4) {
if (http_request.status == 200) {
var data = http_request.responseXML;
@@ -58,7 +62,7 @@ function getContents(http_request) { $(newID).update(newContent[i].firstChild.nodeValue);
}
}
-
+ document.getElementById('ajax-loading').style.display = 'none';
}
}
}
|