Use logout url from ajax timeout.
authorJan <jan@horde.org>
Mon, 5 Jul 2010 16:45:42 +0000 (17:45 +0100)
committerJan Schneider <jan@horde.org>
Mon, 5 Jul 2010 16:55:16 +0000 (18:55 +0200)
kronolith/js/kronolith.js

index 8e5611b..10f92fa 100644 (file)
@@ -241,10 +241,10 @@ KronolithCore = {
         }, this);
     },
 
-    logout: function()
+    logout: function(url)
     {
         this.is_logout = true;
-        this.redirect(Kronolith.conf.URI_AJAX + 'logOut');
+        this.redirect(url || (Kronolith.conf.URI_AJAX + 'logOut'));
     },
 
     redirect: function(url, force)