* Renamed moderator/post/dashboard to moderator/post/queue

* Fixed bug with more overlay links being out of place if news listing is closed
This commit is contained in:
albert
2011-10-26 18:00:48 -04:00
parent 1fc7907374
commit a536a2699b
15 changed files with 94 additions and 65 deletions

View File

@@ -4,6 +4,7 @@
Danbooru.Comment.initialize_all = function() {
this.initialize_response_link();
this.initialize_reply_links();
this.initialize_expand_links();
}
Danbooru.Comment.quote_message = function(data) {
@@ -30,6 +31,15 @@
$(".reply-link").click(Danbooru.Comment.quote);
}
Danbooru.Comment.initialize_expand_links = function() {
$(".comment-section form").hide();
$(".comment-section input.expand-comment-response").click(function() {
var post_id = $(this).closest(".comment-section").data("post-id");
$(".comment-section[data-post-id=" + post_id + "] form").show();
$(this).hide();
});
}
Danbooru.Comment.initialize_response_link = function() {
$("a.expand-comment-response").click(function(e) {
e.preventDefault();