diff --git a/public/script.js b/public/script.js index dbe89a630..6c80d28db 100644 --- a/public/script.js +++ b/public/script.js @@ -3151,7 +3151,11 @@ async function DupeChar() { return; } - const confirm = await callPopup('Are you sure you want to duplicate this character?', 'confirm'); + const confirm = await callPopup(` +

Are you sure you want to duplicate this character?

+ If you just want to start a new chat with the same character, use "Start new chat" option in the bottom-left options menu.

`, + 'confirm', + ); if (!confirm) { console.log('User cancelled duplication'); @@ -5598,11 +5602,19 @@ function onScenarioOverrideRemoveClick() { $(this).closest('.scenario_override').find('.chat_scenario').val('').trigger('input'); } -function callPopup(text, type, inputValue = '', { okButton, rows } = {}) { +function callPopup(text, type, inputValue = '', { okButton, rows, wide, large } = {}) { if (type) { popup_type = type; } + if (wide) { + $("#dialogue_popup").addClass("wide_dialogue_popup"); + } + + if (large) { + $("#dialogue_popup").addClass("large_dialogue_popup"); + } + $("#dialogue_popup_cancel").css("display", "inline-block"); switch (popup_type) { case "avatarToCrop":