regex: update for new popup

This commit is contained in:
Cohee
2025-06-03 00:05:33 +03:00
parent b901ed1be7
commit b72d7f37d7

View File

@@ -276,7 +276,7 @@ async function onRegexEditorOpenClick(existingId, isScoped) {
editorHtml.find('input, textarea, select').on('input', updateTestResult);
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) {
const newRegexScript = {
id: existingId ? String(existingId) : uuidv4(),