From: Jan Schneider Date: Mon, 22 Feb 2010 14:17:16 +0000 (+0100) Subject: Fix logging out. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=0099436eaee045fd5d522abb3ce288e26b641af2;p=horde.git Fix logging out. --- diff --git a/kronolith/index.php b/kronolith/index.php index 1c733c51a..a557e5330 100644 --- a/kronolith/index.php +++ b/kronolith/index.php @@ -17,10 +17,6 @@ if (!$prefs->getValue('dynamic_view') || !$browser->hasFeature('xmlhttpreq') || } /* Load Ajax interface. */ -$logout_link = Horde::getServiceLink('logout', 'kronolith'); -if ($logout_link) { - $logout_link = Horde::widget($logout_link, _("_Logout"), 'logout'); -} $help_link = Horde::getServiceLink('help', 'kronolith'); if ($help_link) { $help_link = Horde::widget($help_link, _("Help"), 'helplink', 'help', Horde::popupJs($help_link, array('urlencode' => true)) . 'return false;'); diff --git a/kronolith/js/kronolith.js b/kronolith/js/kronolith.js index 824fe5ec4..90a103969 100644 --- a/kronolith/js/kronolith.js +++ b/kronolith/js/kronolith.js @@ -125,7 +125,7 @@ KronolithCore = { msgs.find(function(m) { switch (m.type) { case 'horde.ajaxtimeout': - this.logout(Kronolith.conf.timeout_url); + this.logout(m.message); return true; case 'horde.alarm': @@ -207,10 +207,10 @@ KronolithCore = { }, this); }, - logout: function(url) + logout: function() { this.is_logout = true; - this.redirect(url || (Kronolith.conf.URI_IMP + '/LogOut')); + this.redirect(Kronolith.conf.URI_AJAX + 'LogOut'); }, redirect: function(url) @@ -2728,6 +2728,11 @@ KronolithCore = { e.stop(); return; + case 'kronolithLogout': + this.logout(); + e.stop(); + return; + case 'kronolithMinicalDate': this.go('month:' + orig.retrieve('date')); e.stop(); diff --git a/kronolith/templates/index/index.inc b/kronolith/templates/index/index.inc index 7ed8d9e6f..2714e1541 100644 --- a/kronolith/templates/index/index.inc +++ b/kronolith/templates/index/index.inc @@ -20,7 +20,7 @@ "> | - | ' . $help_link; if ($logout_link) echo ' | ' . $logout_link ?> + | ' . $help_link; if (Horde_Menu::showService('logout')) { $ak = Horde::getAccessKey(_("_Logout")); echo ' | ' . Horde::highlightAccessKey(_("_Logout"), $ak) . ''; } ?>