Fix i18n, make dialog wide

This commit is contained in:
Cohee
2024-06-03 01:49:01 +03:00
parent e93bc49b36
commit 91061c1d55
2 changed files with 13 additions and 3 deletions

View File

@ -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);