mirror of
https://github.com/Eggbertx/gochan.git
synced 2025-08-02 15:06:23 -07:00
Merge pull request #83 from gochan-org/deepsource-autofix-8b21a663
replace template strings with regular string literals
This commit is contained in:
commit
609c8cbc7f
4 changed files with 8 additions and 8 deletions
|
@ -23,12 +23,12 @@ let threadCooldown = 0;
|
|||
let replyCooldown = 0;
|
||||
|
||||
const qrButtonHTML =
|
||||
`<input type="file" id="imagefile" name="imagefile" accept="image/jpeg,image/png,image/gif,video/webm,video/mp4"/>` +
|
||||
`<input type="submit" value="Post" style="float:right;min-width:50px"/>`;
|
||||
'<input type="file" id="imagefile" name="imagefile" accept="image/jpeg,image/png,image/gif,video/webm,video/mp4"/>' +
|
||||
'<input type="submit" value="Post" style="float:right;min-width:50px"/>';
|
||||
|
||||
const qrTitleBar =
|
||||
`<div id="qr-title">` +
|
||||
`<span id="qr-message"></span>` +
|
||||
'<div id="qr-title">' +
|
||||
'<span id="qr-message"></span>' +
|
||||
`<span id="qr-buttons"><a href="javascript:toBottom();">${downArrow}</a>` +
|
||||
`<a href="javascript:toTop();">${upArrow}</a><a href="javascript:closeQR();">X</a></span></div>`;
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@ function setupManagementEvents() {
|
|||
const $post = $(el.parentElement);
|
||||
const isLocked = isThreadLocked($post);
|
||||
if(!dropdownHasItem(el, "Staff Actions")) {
|
||||
$el.append(`<option disabled="disabled">Staff Actions</option>`);
|
||||
$el.append('<option disabled="disabled">Staff Actions</option>');
|
||||
}
|
||||
if($post.hasClass("op-post")) {
|
||||
if(isLocked) {
|
||||
|
|
|
@ -131,7 +131,7 @@ class NumberSetting extends Setting<number, HTMLInputElement> {
|
|||
|
||||
function createLightbox() {
|
||||
const settingsHTML =
|
||||
`<div id="settings-container" style="overflow:auto"><table width="100%"><colgroup><col span="1" width="50%"><col span="1" width="50%"></colgroup></table></div><div class="lightbox-footer"><hr /><button id="save-settings-button">Save Settings</button></div>`;
|
||||
'<div id="settings-container" style="overflow:auto"><table width="100%"><colgroup><col span="1" width="50%"><col span="1" width="50%"></colgroup></table></div><div class="lightbox-footer"><hr /><button id="save-settings-button">Save Settings</button></div>';
|
||||
showLightBox("Settings", settingsHTML);
|
||||
$("button#save-settings-button").on("click", () => {
|
||||
settings.forEach((setting, key) => {
|
||||
|
|
|
@ -59,7 +59,7 @@ function addThreadToMenu(thread: WatchedThreadJSON) {
|
|||
function removeThreadFromMenu(threadID: number) {
|
||||
$watcherMenu.find(`div#thread${threadID}`).remove();
|
||||
if($watcherMenu.find("div.watcher-item").length == 0)
|
||||
$watcherMenu.append(`<i id="no-threads">no watched threads</i>`);
|
||||
$watcherMenu.append('<i id="no-threads">no watched threads</i>');
|
||||
}
|
||||
|
||||
function updateThreadInWatcherMenu(thread: WatchedThreadJSON) {
|
||||
|
@ -101,7 +101,7 @@ $(() => {
|
|||
$watcherMenu = $("<div/>").prop({
|
||||
id: "watchermenu",
|
||||
class: "dropdown-menu"
|
||||
}).append(`<b>Watched threads</b><br/><i id="no-threads">no watched threads</i>`);
|
||||
}).append('<b>Watched threads</b><br/><i id="no-threads">no watched threads</i>');
|
||||
}
|
||||
if(watcherBtn === null) {
|
||||
watcherBtn = new TopBarButton("Watcher", () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue