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
1225812258 $(document).on('click', '.external_import_button, #external_import_button', async () => {
1225912259 const html = await renderTemplateAsync('importCharacters');
12260-
12260+ 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
1226412262 if (!input) {
1226512263 console.debug('Custom content import cancelled');
@@ -12267,7 +12265,7 @@ jQuery(async function () {
1226712265 }
1226812266
1226912267 // break input into one input per line
1227012268 const inputs = String(input).split('\n').map(x => x.trim()).filter(x => x.length > 0);
1227112269
1227212270 for (const url of inputs) {
1227312271 let request;