1
0
Fork 0
mirror of https://github.com/Eggbertx/gochan.git synced 2025-08-20 09:26:23 -07:00

Add anchor link to createPostElement

This prevents it from being added to the thread multiple times
This commit is contained in:
Eggbertx 2022-08-04 16:44:25 -07:00
parent 697e9f9e0e
commit 1265576967
3 changed files with 6 additions and 2 deletions

View file

@ -118,6 +118,10 @@ function createPostElement(post, boardDir, elementClass = "inlinepostprev") {
let $post = $("<div/>")
.prop({class: elementClass});
$post.append(
$("<a/>").prop({
id: post.no.toString(),
class: "anchor"
}),
$("<input/>")
.prop({
type: "checkbox",

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long