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:
parent
697e9f9e0e
commit
1265576967
3 changed files with 6 additions and 2 deletions
|
@ -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
Loading…
Add table
Add a link
Reference in a new issue