mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Fix WI button class toggle
This commit is contained in:
@ -4806,7 +4806,7 @@ export function select_selected_character(chid) {
|
|||||||
$("#renameCharButton").css("display", "");
|
$("#renameCharButton").css("display", "");
|
||||||
$('.open_alternate_greetings').data('chid', chid);
|
$('.open_alternate_greetings').data('chid', chid);
|
||||||
$('#set_character_world').data('chid', chid);
|
$('#set_character_world').data('chid', chid);
|
||||||
const world = characters[chid].data?.extensions?.world;
|
const world = !!(characters[chid].data?.extensions?.world);
|
||||||
$('#set_character_world').toggleClass('world_set', world && world_names.includes(world));
|
$('#set_character_world').toggleClass('world_set', world && world_names.includes(world));
|
||||||
|
|
||||||
$("#form_create").attr("actiontype", "editcharacter");
|
$("#form_create").attr("actiontype", "editcharacter");
|
||||||
|
Reference in New Issue
Block a user