This commit is contained in:
albert
2012-01-07 21:17:22 -05:00
parent 978a86d5f3
commit c9dbae237c
2 changed files with 4 additions and 0 deletions

View File

@@ -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");
}
});

View File

@@ -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");
}
});
}