Skip to content

Commit

Permalink
[Posts] Fix tag scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
bitWolfy committed Aug 12, 2024
1 parent 7becf4b commit 5ff0630
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/js/modules/search/BetterSearch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ export class BetterSearch extends RE6Module {
.attr("infscroll", "ready");

resolve(pagesLoaded);
}).then((pagesLoaded) => {
}).then((pagesLoaded: number) => {

this.reloadPaginator();
this.reloadEventListeners();
Expand Down Expand Up @@ -677,14 +677,14 @@ export class BetterSearch extends RE6Module {
"data-tags": post.tagString,
"data-flags": Array.from(post.flags).join(" "),
})
.appendTo("body");
$("<a>").appendTo($tempArticle)
.one("click", (event) => {
.appendTo("body")
.on("click", (event) => {
Danbooru.PostModeMenu.click(event);
window.setTimeout(() => {
$tempArticle.remove();
}, 500);
})[0].click();
});
$tempArticle[0].click();
post.$ref.trigger("re621:sync");
break;
}
Expand Down

0 comments on commit 5ff0630

Please sign in to comment.