From b21d96d908a75da3645887b837f9dec13cdce5de Mon Sep 17 00:00:00 2001 From: Arkerthan <arkerthan@mailbox.org> Date: Wed, 22 Feb 2023 16:39:37 +0100 Subject: [PATCH] fix refreshing of custom titles --- src/interaction/siCustom.js | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/interaction/siCustom.js b/src/interaction/siCustom.js index f28b71fe58d..e8e6312e3a8 100644 --- a/src/interaction/siCustom.js +++ b/src/interaction/siCustom.js @@ -86,10 +86,8 @@ App.UI.SlaveInteract.custom = function(slave, refresh) { "", v => { slave.custom.title = v; - jQuery('#result').empty().append( - document.createTextNode(`${He}'ll try ${his} best to call you ${slave.custom.title}.`) - ); slave.custom.titleLisp = lispReplace(slave.custom.title); + refresh(); } ) ); @@ -100,10 +98,8 @@ App.UI.SlaveInteract.custom = function(slave, refresh) { slave.custom.title, v => { slave.custom.title = v; - jQuery('#result').empty().append( - document.createTextNode(`${He}'ll try ${his} best to call you ${slave.custom.title}.`) - ); slave.custom.titleLisp = lispReplace(slave.custom.title); + refresh(); } ) ); @@ -111,11 +107,9 @@ App.UI.SlaveInteract.custom = function(slave, refresh) { App.UI.DOM.link( ` Stop using a custom title`, () => { - jQuery('#result').empty().append( - document.createTextNode(`${He} will no longer refer to you with a special title.`) - ); slave.custom.title = ""; slave.custom.titleLisp = ""; + refresh(); } ) ); -- GitLab