Removed content emptying on navigation

It was really annoying!
This commit is contained in:
Marcin Kurczewski
2014-09-03 20:05:45 +02:00
parent 403cc735b8
commit 48016bea13
2 changed files with 2 additions and 1 deletions

View File

@ -13,6 +13,7 @@ App.Presenters.LogoutPresenter = function(
function init() {
topNavigationPresenter.select('logout');
auth.logout().then(function() {
$messages.empty();
var $messageDiv = messagePresenter.showInfo($messages, 'Logged out. <a href="">Back to main page</a>');
$messageDiv.find('a').click(mainPageLinkClicked);
}).catch(function(response) {