mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
Improved API responses
This commit is contained in:
@ -151,8 +151,9 @@ App.Presenters.PostEditPresenter = function(
|
||||
promise.wait(api.post('/posts/' + post.id, formData))
|
||||
.then(function(response) {
|
||||
tagList.refreshTags();
|
||||
post = response.json.post;
|
||||
if (typeof(updateCallback) !== 'undefined') {
|
||||
updateCallback(post = response.json);
|
||||
updateCallback(post);
|
||||
}
|
||||
}).fail(function(response) {
|
||||
showEditError(response);
|
||||
|
Reference in New Issue
Block a user