Log out whether or not the server reports success
[blerg.git] / www / js / blerg.js
index b882dd9..b0bc38f 100644 (file)
@@ -69,7 +69,7 @@ LoginStatus.prototype.logout = function() {
         parameters: {
             username: this.username
         },
-        onSuccess: function(r) {
+        onComplete: function(r) {
             this.loggedIn = false;
             document.cookie = "auth=; expires=1-Jan-1970 00:00:00 GMT";
             this.update();