[skip ci] ESLint

This commit is contained in:
Cohee 2024-04-28 16:58:28 +03:00
parent a73cb9ad3d
commit fb1b327f9a
3 changed files with 5 additions and 5 deletions

View File

@ -47,7 +47,7 @@ export class ScraperManager {
* @returns {ScraperInfo[]} List of scrapers available for the Data Bank
*/
static getDataBankScrapers() {
return ScraperManager.#scrapers.map(s => ({ id: s.id, name: s.name, description: s.description, iconClass: s.iconClass, iconAvailable: s.iconAvailable}));
return ScraperManager.#scrapers.map(s => ({ id: s.id, name: s.name, description: s.description, iconClass: s.iconClass, iconAvailable: s.iconAvailable }));
}
/**

View File

@ -1477,14 +1477,14 @@ export function initTags() {
toggleAutoSortTags(evt.originalEvent, toggle);
printViewTagList();
});
$(document).on('focusout', `#dialogue_popup .tag_view_name`, (evt) => {
$(document).on('focusout', '#dialogue_popup .tag_view_name', (evt) => {
// Remember the order, so we can flash highlight if it changed after reprinting
const tagId = $(evt.target).parent('.tag_view_item').attr('id');
const oldOrder = $(`#dialogue_popup .tag_view_item`).map((_, el) => el.id).get();
const oldOrder = $('#dialogue_popup .tag_view_item').map((_, el) => el.id).get();
printViewTagList();
const newOrder = $(`#dialogue_popup .tag_view_item`).map((_, el) => el.id).get();
const newOrder = $('#dialogue_popup .tag_view_item').map((_, el) => el.id).get();
const orderChanged = !oldOrder.every((id, index) => id === newOrder[index]);
if (orderChanged) {
flashHighlight($(`#dialogue_popup .tag_view_item[id="${tagId}"]`));

View File

@ -31,7 +31,7 @@ export const debounce_timeout = {
relaxed: 1000,
/** [5 sec] For delayed tasks, like auto-saving or completing batch operations that need a significant pause. */
extended: 5000,
}
};
export function escapeHtml(str) {
return String(str).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/"/g, '&quot;');