fixes #1583
This commit is contained in:
@@ -139,8 +139,10 @@
|
|||||||
var current_post_id = $("meta[name=post-id]").attr("content");
|
var current_post_id = $("meta[name=post-id]").attr("content");
|
||||||
$("#post_" + current_post_id).css("background-color", "rgba(0,0,0,0.05)");
|
$("#post_" + current_post_id).css("background-color", "rgba(0,0,0,0.05)");
|
||||||
|
|
||||||
this.toggle_relationship_preview($("#has-children-relationship-preview"), $("#has-children-relationship-preview-link"));
|
if (Danbooru.Cookie.get("show-relationship-previews") === "0") {
|
||||||
this.toggle_relationship_preview($("#has-parent-relationship-preview"), $("#has-parent-relationship-preview-link"));
|
this.toggle_relationship_preview($("#has-children-relationship-preview"), $("#has-children-relationship-preview-link"));
|
||||||
|
this.toggle_relationship_preview($("#has-parent-relationship-preview"), $("#has-parent-relationship-preview-link"));
|
||||||
|
}
|
||||||
|
|
||||||
$("#has-children-relationship-preview-link").click(function(e) {
|
$("#has-children-relationship-preview-link").click(function(e) {
|
||||||
Danbooru.Post.toggle_relationship_preview($("#has-children-relationship-preview"), $(this));
|
Danbooru.Post.toggle_relationship_preview($("#has-children-relationship-preview"), $(this));
|
||||||
@@ -157,9 +159,11 @@
|
|||||||
preview.toggle();
|
preview.toggle();
|
||||||
if (preview.is(":visible")) {
|
if (preview.is(":visible")) {
|
||||||
preview_link.html("« hide");
|
preview_link.html("« hide");
|
||||||
|
Danbooru.Cookie.put("show-relationship-previews", "1");
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
preview_link.html("show »");
|
preview_link.html("show »");
|
||||||
|
Danbooru.Cookie.put("show-relationship-previews", "0");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user