fixes #222
This commit is contained in:
@@ -42,6 +42,8 @@
|
||||
},
|
||||
success: function(data) {
|
||||
Danbooru.Post.update_data(data);
|
||||
$("#post_" + data.id).effect("shake", {distance: 5, times: 1}, 100);
|
||||
Danbooru.notice("Post #" + data.id + " updated");
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@@ -232,9 +232,11 @@
|
||||
},
|
||||
success: function(data, status, xhr) {
|
||||
Danbooru.Post.update_data(data);
|
||||
|
||||
},
|
||||
error: function(data, status, xhr) {
|
||||
Danbooru.notice("Error: " + data.reason);
|
||||
$("#post_" + data.id).effect("shake", {"distance": 20}, "fast");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user