Changed login so it leads to previously viewed page

This commit is contained in:
Marcin Kurczewski
2014-09-10 13:55:35 +02:00
parent c117367974
commit 968a15ef60
4 changed files with 20 additions and 6 deletions

View File

@ -49,7 +49,7 @@ App.Presenters.PagedCollectionPresenter = function(_, util, promise, api) {
if (typeof(failCallback) !== 'undefined') {
failCallback(response);
} else {
console.log(Error(response.json && response.json.error || response));
console.log(new Error(response.json && response.json.error || response));
}
});
}