From 42d306734d5a3f2bbbd2ae1e9b1e354d9c22ee20 Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Fri, 10 Oct 2014 23:01:01 +0200 Subject: [PATCH] Fixed user presenter unable to show errors --- public_html/js/Presenters/UserPresenter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public_html/js/Presenters/UserPresenter.js b/public_html/js/Presenters/UserPresenter.js index 05774ee2..76a819b0 100644 --- a/public_html/js/Presenters/UserPresenter.js +++ b/public_html/js/Presenters/UserPresenter.js @@ -25,7 +25,6 @@ App.Presenters.UserPresenter = function( function init(params, loaded) { promise.wait(util.promiseTemplate('user')) .then(function(template) { - $messages = $el.find('.messages'); templates.user = template; reinit(params, loaded); }).fail(function() { @@ -79,6 +78,7 @@ App.Presenters.UserPresenter = function( canChangeBrowsingSettings: userBrowsingSettingsPresenter.getPrivileges().canChangeBrowsingSettings, canChangeAccountSettings: _.any(userAccountSettingsPresenter.getPrivileges()), canDeleteAccount: userAccountRemovalPresenter.getPrivileges().canDeleteAccount})); + $messages = $el.find('.messages'); util.loadImagesNicely($el.find('img')); userBrowsingSettingsPresenter.render(); userAccountSettingsPresenter.render();