Fixed error messages covered with content spinner

This commit is contained in:
Marcin Kurczewski 2014-09-27 10:31:12 +02:00
parent 5291d02b4c
commit 3da8d2c233
5 changed files with 12 additions and 2 deletions

View file

@ -40,6 +40,7 @@ App.Presenters.HomePresenter = function(
}).fail(function(response) {
messagePresenter.showError($el, response.json && response.json.error || response);
loaded();
});
}

View file

@ -41,6 +41,7 @@ App.Presenters.PostListPresenter = function(
failCallback: function(response) {
$el.empty();
messagePresenter.showError($el, response.json && response.json.error || response);
loaded();
}
},
function() {

View file

@ -63,7 +63,10 @@ App.Presenters.PostPresenter = function(
historyTemplate = _.template(historyTemplateHtml);
reinit(args, loaded);
}).fail(showGenericError);
}).fail(function(response) {
showGenericError(response);
loaded();
});
}
function reinit(args, loaded) {
@ -80,7 +83,10 @@ App.Presenters.PostPresenter = function(
topNavigationPresenter.changeTitle('@' + post.id);
render();
loaded();
}).fail(showGenericError);
}).fail(function(response) {
showGenericError(response);
loaded();
});
}
function render() {

View file

@ -40,6 +40,7 @@ App.Presenters.UserListPresenter = function(
failCallback: function(response) {
$el.empty();
messagePresenter.showError($el, response.json && response.json.error || response);
loaded();
}
},
function() {

View file

@ -50,6 +50,7 @@ App.Presenters.UserPresenter = function(
}).fail(function(response) {
$el.empty();
messagePresenter.showError($messages, response.json && response.json.error || response);
loaded();
});
}