From 48016bea138c9318122566e47745c365d9b94584 Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Wed, 3 Sep 2014 20:05:45 +0200 Subject: [PATCH] Removed content emptying on navigation It was really annoying! --- public_html/js/Presenters/LogoutPresenter.js | 1 + public_html/js/Util.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/public_html/js/Presenters/LogoutPresenter.js b/public_html/js/Presenters/LogoutPresenter.js index a0eec48d..b3383d03 100644 --- a/public_html/js/Presenters/LogoutPresenter.js +++ b/public_html/js/Presenters/LogoutPresenter.js @@ -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. Back to main page'); $messageDiv.find('a').click(mainPageLinkClicked); }).catch(function(response) { diff --git a/public_html/js/Util.js b/public_html/js/Util.js index 707faa18..44e03e8a 100644 --- a/public_html/js/Util.js +++ b/public_html/js/Util.js @@ -34,7 +34,7 @@ App.Util = (function(jQuery) { } function initContentPresenter(presenterGetter, args) { - jQuery('#content').empty(); + //jQuery('#content').empty(); initPresenter(presenterGetter, args); };