Allow vertical scroll in import menu

817ae20c3b20ebd324d6e93422f40b6d3bbafcd1

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +2 -4Ignore whitespace
public/script.js+2 -4
@@ -12257,9 +12257,7 @@ jQuery(async function () {
1225712257
12258 $(document).on('click', '.external_import_button, #external_import_button', async () => {12258 $(document).on('click', '.external_import_button, #external_import_button', async () => {
12259 const html = await renderTemplateAsync('importCharacters');12259 const html = await renderTemplateAsync('importCharacters');
1226012260 const input = await callGenericPopup(html, POPUP_TYPE.INPUT, '', { allowVerticalScrolling: true, wider: true, okButton: $('#popup_template').attr('popup-button-import'), rows: 4 });
12261 /** @type {string?} */
12262 const input = await callGenericPopup(html, POPUP_TYPE.INPUT, '', { wider: true, okButton: $('#popup_template').attr('popup-button-import'), rows: 4 });
1226312261
12264 if (!input) {12262 if (!input) {
12265 console.debug('Custom content import cancelled');12263 console.debug('Custom content import cancelled');
@@ -12267,7 +12265,7 @@ jQuery(async function () {
12267 }12265 }
1226812266
12269 // break input into one input per line12267 // break input into one input per line
12270 const inputs = input.split('\n').map(x => x.trim()).filter(x => x.length > 0);12268 const inputs = String(input).split('\n').map(x => x.trim()).filter(x => x.length > 0);
1227112269
12272 for (const url of inputs) {12270 for (const url of inputs) {
12273 let request;12271 let request;