From d1edda690260fdcf8be8320e1c6c5785f4542410 Mon Sep 17 00:00:00 2001 From: SillyLossy Date: Fri, 12 May 2023 15:05:35 +0300 Subject: [PATCH] Fix fav button resetting state on switching to char create --- public/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/script.js b/public/script.js index 197434e20..9dcc30431 100644 --- a/public/script.js +++ b/public/script.js @@ -3696,6 +3696,7 @@ function select_rm_create() { $("#renameCharButton").css('display', 'none'); $("#name_div").removeClass('displayNone'); $("#name_div").addClass('displayBlock'); + updateFavButtonState(false); $("#form_create").attr("actiontype", "createcharacter"); } @@ -3729,7 +3730,6 @@ function updateFavButtonState(state) { $("#fav_checkbox").val(fav_ch_checked); $("#favorite_button").toggleClass('fav_on', fav_ch_checked); $("#favorite_button").toggleClass('fav_off', !fav_ch_checked); - } function callPopup(text, type, inputValue = '') {