logoutUser: add notify

This commit is contained in:
Andrew Dolgov 2007-03-01 10:46:32 +01:00
parent 01a87dff9e
commit 64f6db9051
1 changed files with 3 additions and 0 deletions

View File

@ -1620,6 +1620,9 @@ function explainError(code) {
function logoutUser() { function logoutUser() {
try { try {
if (xmlhttp_ready(xmlhttp_rpc)) { if (xmlhttp_ready(xmlhttp_rpc)) {
notify("Logging out, please wait...");
xmlhttp_rpc.open("GET", "backend.php?op=rpc&subop=logout", true); xmlhttp_rpc.open("GET", "backend.php?op=rpc&subop=logout", true);
xmlhttp_rpc.onreadystatechange=logout_callback; xmlhttp_rpc.onreadystatechange=logout_callback;
xmlhttp_rpc.send(null); xmlhttp_rpc.send(null);