Fix #3216: Allow note URL # anchors to work from the post itself

This commit is contained in:
evazion
2017-07-12 21:53:26 -05:00
parent 023c488bd5
commit d3d4e3cc8d

View File

@@ -141,6 +141,7 @@ Danbooru.Note = {
var note_id = $note_box.data("id");
Danbooru.Note.Body.show(note_id);
$(".note-box-highlighted").removeClass("note-box-highlighted");
$note_box.addClass("note-box-highlighted");
Danbooru.scroll_to($note_box);
},
@@ -800,6 +801,7 @@ Danbooru.Note = {
this.initialize_shortcuts();
this.initialize_highlight();
$(window).on("hashchange", this.initialize_highlight);
},
initialize_shortcuts: function() {