mirror of
https://github.com/Eggbertx/gochan.git
synced 2025-08-28 08:06:24 -07:00
refactor: replace template strings with regular string literals
Template literals are useful when you need: 1. [Interpolated strings](https://en.wikipedia.org/wiki/String_interpolation).
This commit is contained in:
parent
1603a2eb7e
commit
8860f3dbec
5 changed files with 11 additions and 11 deletions
|
@ -228,8 +228,8 @@ export function addPostDropdown($post: JQuery<HTMLElement>) {
|
|||
let showHide = isPostVisible(idNum)?"Hide":"Show";
|
||||
$ddownMenu.append(
|
||||
`<option>${showHide} ${threadPost}</option>`,
|
||||
`<option>Edit post</option>`,
|
||||
`<option>Report post</option>`,
|
||||
"<option>Edit post</option>",
|
||||
"<option>Report post</option>",
|
||||
`<option>Delete ${threadPost}</option>`,
|
||||
).insertAfter($postInfo)
|
||||
.on("change", _e => {
|
||||
|
@ -237,7 +237,7 @@ export function addPostDropdown($post: JQuery<HTMLElement>) {
|
|||
$ddownMenu.val("Actions");
|
||||
});
|
||||
if(hasUpload)
|
||||
$ddownMenu.append(`<option>Delete file</option>`);
|
||||
$ddownMenu.append("<option>Delete file</option>");
|
||||
$post.trigger("postDropdownAdded", {
|
||||
post: $post,
|
||||
dropdown: $ddownMenu
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue