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() { function init() {
topNavigationPresenter.select('logout'); topNavigationPresenter.select('logout');
auth.logout().then(function() { auth.logout().then(function() {
$messages.empty();
var $messageDiv = messagePresenter.showInfo($messages, 'Logged out. <a href="">Back to main page</a>'); var $messageDiv = messagePresenter.showInfo($messages, 'Logged out. <a href="">Back to main page</a>');
$messageDiv.find('a').click(mainPageLinkClicked); $messageDiv.find('a').click(mainPageLinkClicked);
}).catch(function(response) { }).catch(function(response) {

View file

@ -34,7 +34,7 @@ App.Util = (function(jQuery) {
} }
function initContentPresenter(presenterGetter, args) { function initContentPresenter(presenterGetter, args) {
jQuery('#content').empty(); //jQuery('#content').empty();
initPresenter(presenterGetter, args); initPresenter(presenterGetter, args);
}; };