* Additional effects

* Fixed flash pngs
* Fixed dmail search links
This commit is contained in:
albert
2011-11-03 17:42:40 -04:00
parent f6367aab49
commit c478eb33b6
13 changed files with 26 additions and 24 deletions

View File

@@ -35,18 +35,19 @@
Danbooru.Comment.initialize_expand_links = function() {
$(".comment-section form").hide();
$(".comment-section input.expand-comment-response").click(function() {
$(".comment-section input.expand-comment-response").click(function(e) {
var post_id = $(this).closest(".comment-section").data("post-id");
$(".comment-section[data-post-id=" + post_id + "] form").show();
$(this).hide();
$(".comment-section[data-post-id=" + post_id + "] form").slideDown("fast");
e.preventDefault();
});
}
Danbooru.Comment.initialize_response_link = function() {
$("a.expand-comment-response").click(function(e) {
e.preventDefault();
$(e.target).closest("div.new-comment").find("form").show();
$(e.target).hide();
$(e.target).closest("div.new-comment").find("form").slideDown("fast");
e.preventDefault();
});
$("div.new-comment form").hide();