Removed content emptying on navigation
It was really annoying!
This commit is contained in:
parent
403cc735b8
commit
48016bea13
2 changed files with 2 additions and 1 deletions
|
@ -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) {
|
||||
|
|
|
@ -34,7 +34,7 @@ App.Util = (function(jQuery) {
|
|||
}
|
||||
|
||||
function initContentPresenter(presenterGetter, args) {
|
||||
jQuery('#content').empty();
|
||||
//jQuery('#content').empty();
|
||||
initPresenter(presenterGetter, args);
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue