mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
regex: update for new popup
This commit is contained in:
@@ -276,7 +276,7 @@ async function onRegexEditorOpenClick(existingId, isScoped) {
|
|||||||
editorHtml.find('input, textarea, select').on('input', updateTestResult);
|
editorHtml.find('input, textarea, select').on('input', updateTestResult);
|
||||||
updateInfoBlock(editorHtml);
|
updateInfoBlock(editorHtml);
|
||||||
|
|
||||||
const popupResult = await callPopup(editorHtml, 'confirm', undefined, { okButton: t`Save` });
|
const popupResult = await callGenericPopup(editorHtml, POPUP_TYPE.CONFIRM, '', { okButton: t`Save`, cancelButton: t`Cancel`, allowVerticalScrolling: true });
|
||||||
if (popupResult) {
|
if (popupResult) {
|
||||||
const newRegexScript = {
|
const newRegexScript = {
|
||||||
id: existingId ? String(existingId) : uuidv4(),
|
id: existingId ? String(existingId) : uuidv4(),
|
||||||
|
Reference in New Issue
Block a user