diff --git a/public/script.js b/public/script.js index 7fed9be28..060cc9238 100644 --- a/public/script.js +++ b/public/script.js @@ -10539,7 +10539,7 @@ jQuery(async function () { const html = await renderTemplateAsync('importCharacters'); /** @type {string?} */ - const input = await callGenericPopup(html, POPUP_TYPE.INPUT, '', { okButton: $('#shadow_popup_template').attr('popup_text_import'), rows: 4 }); + const input = await callGenericPopup(html, POPUP_TYPE.INPUT, '', { wide: true, okButton: $('#shadow_popup_template').attr('popup_text_import'), rows: 4 }); if (!input) { console.debug('Custom content import cancelled'); @@ -10550,7 +10550,7 @@ jQuery(async function () { const inputs = input.split('\n').map(x => x.trim()).filter(x => x.length > 0); for (const url of inputs) { - var request; + let request; if (isValidUrl(url)) { console.debug('Custom content import started for URL: ', url); diff --git a/public/scripts/templates/importCharacters.html b/public/scripts/templates/importCharacters.html index e8c5598cc..453516ddb 100644 --- a/public/scripts/templates/importCharacters.html +++ b/public/scripts/templates/importCharacters.html @@ -12,4 +12,14 @@
Shift
+ Enter
to start a new line)
+
+
+ Supports importing multiple characters.
+
+
+ Write each URL or ID into a new line.
+
+
+ (Shift + Enter to start a new line)
+
+