tweaks to similar posts

This commit is contained in:
Albert Yi
2018-07-20 15:05:51 -07:00
parent 6fb20fca89
commit df6e86551a
5 changed files with 32 additions and 7 deletions

View File

@@ -438,6 +438,7 @@
$("#comments").show();
$("#edit").hide();
$("#share").hide();
$("#similar").hide();
} else if (e.target.hash === "#edit") {
$("#edit").show();
$("#comments").hide();
@@ -445,12 +446,19 @@
$("#post_tag_string").focus().selectEnd().height($("#post_tag_string")[0].scrollHeight);
$("#related-tags-button").trigger("click");
$("#find-artist-button").trigger("click");
$("#similar").hide();
} else if (e.target.hash === "#similar") {
$("#comments").hide();
$("#edit").hide();
$("#share").hide();
$("#similar").show();
} else {
$("#edit").hide();
$("#comments").hide();
$("#share").show();
addthis.init();
}
$("#similar").hide();
}
$("#post-sections li").removeClass("active");
$(e.target).parent("li").addClass("active");
@@ -460,6 +468,9 @@
$("#post-sections li:first-child").addClass("active");
$("#notes").hide();
$("#edit").hide();
if ($("#similar").length) {
$("#comments").hide();
}
}
Danbooru.Post.resize_ugoira_controls = function() {