Fixed error messages covered with content spinner
This commit is contained in:
parent
5291d02b4c
commit
3da8d2c233
5 changed files with 12 additions and 2 deletions
|
@ -40,6 +40,7 @@ App.Presenters.HomePresenter = function(
|
|||
|
||||
}).fail(function(response) {
|
||||
messagePresenter.showError($el, response.json && response.json.error || response);
|
||||
loaded();
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -41,6 +41,7 @@ App.Presenters.PostListPresenter = function(
|
|||
failCallback: function(response) {
|
||||
$el.empty();
|
||||
messagePresenter.showError($el, response.json && response.json.error || response);
|
||||
loaded();
|
||||
}
|
||||
},
|
||||
function() {
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -40,6 +40,7 @@ App.Presenters.UserListPresenter = function(
|
|||
failCallback: function(response) {
|
||||
$el.empty();
|
||||
messagePresenter.showError($el, response.json && response.json.error || response);
|
||||
loaded();
|
||||
}
|
||||
},
|
||||
function() {
|
||||
|
|
|
@ -50,6 +50,7 @@ App.Presenters.UserPresenter = function(
|
|||
}).fail(function(response) {
|
||||
$el.empty();
|
||||
messagePresenter.showError($messages, response.json && response.json.error || response);
|
||||
loaded();
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue