From 83aa2b950b07f3fe493d815dbe9d177ada8c5752 Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Thu, 18 Sep 2014 10:44:33 +0200 Subject: [PATCH] Fixed messages in post upload presenter --- public_html/js/Presenters/PostUploadPresenter.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public_html/js/Presenters/PostUploadPresenter.js b/public_html/js/Presenters/PostUploadPresenter.js index e3dc4d2e..64777ca4 100644 --- a/public_html/js/Presenters/PostUploadPresenter.js +++ b/public_html/js/Presenters/PostUploadPresenter.js @@ -274,6 +274,7 @@ App.Presenters.PostUploadPresenter = function( } function postTableSelectionChanged(selectedPosts) { + messagePresenter.hideMessages($messages); if (selectedPosts.length === 0) { hidePostEditForm(); } else { @@ -495,7 +496,6 @@ App.Presenters.PostUploadPresenter = function( function uploadNextPost() { messagePresenter.hideMessages($messages); - messagePresenter.showInfo($messages, 'Uploading in progress…'); var posts = getAllPosts(); if (posts.length === 0) { @@ -504,6 +504,7 @@ App.Presenters.PostUploadPresenter = function( return; } + messagePresenter.showInfo($messages, 'Uploading in progress…'); var post = posts[0]; var $row = post.$tableRow;