fixes #1432
This commit is contained in:
@@ -559,15 +559,14 @@
|
|||||||
type: "PUT",
|
type: "PUT",
|
||||||
url: "/posts/" + post_id + ".json",
|
url: "/posts/" + post_id + ".json",
|
||||||
data: params,
|
data: params,
|
||||||
complete: function() {
|
|
||||||
Danbooru.Post.notice_update("dec");
|
|
||||||
},
|
|
||||||
success: function(data) {
|
success: function(data) {
|
||||||
|
Danbooru.Post.notice_update("dec");
|
||||||
Danbooru.Post.update_data(data);
|
Danbooru.Post.update_data(data);
|
||||||
},
|
},
|
||||||
error: function(data) {
|
error: function(data) {
|
||||||
Danbooru.notice("Error: " + data.reason);
|
Danbooru.Post.notice_update("dec");
|
||||||
$("#post_" + data.id).effect("shake", {"distance": 20}, "fast");
|
Danbooru.error('There was an error updating <a href="/posts/' + post_id + '">post #' + post_id + '</a>');
|
||||||
|
$("#post_" + post_id).effect("shake", {distance: 5, times: 1}, 100);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user