Fixed messages in post upload presenter
This commit is contained in:
parent
3b505a9c60
commit
83aa2b950b
1 changed files with 2 additions and 1 deletions
|
@ -274,6 +274,7 @@ App.Presenters.PostUploadPresenter = function(
|
||||||
}
|
}
|
||||||
|
|
||||||
function postTableSelectionChanged(selectedPosts) {
|
function postTableSelectionChanged(selectedPosts) {
|
||||||
|
messagePresenter.hideMessages($messages);
|
||||||
if (selectedPosts.length === 0) {
|
if (selectedPosts.length === 0) {
|
||||||
hidePostEditForm();
|
hidePostEditForm();
|
||||||
} else {
|
} else {
|
||||||
|
@ -495,7 +496,6 @@ App.Presenters.PostUploadPresenter = function(
|
||||||
|
|
||||||
function uploadNextPost() {
|
function uploadNextPost() {
|
||||||
messagePresenter.hideMessages($messages);
|
messagePresenter.hideMessages($messages);
|
||||||
messagePresenter.showInfo($messages, 'Uploading in progress…');
|
|
||||||
|
|
||||||
var posts = getAllPosts();
|
var posts = getAllPosts();
|
||||||
if (posts.length === 0) {
|
if (posts.length === 0) {
|
||||||
|
@ -504,6 +504,7 @@ App.Presenters.PostUploadPresenter = function(
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
messagePresenter.showInfo($messages, 'Uploading in progress…');
|
||||||
var post = posts[0];
|
var post = posts[0];
|
||||||
var $row = post.$tableRow;
|
var $row = post.$tableRow;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue