mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-03-11 17:40:14 +01:00
Code clean-up
This commit is contained in:
parent
882e86be11
commit
016e3df564
@ -629,15 +629,8 @@ jQuery(() => {
|
||||
|
||||
$('#instruct_enabled').on('change', function () {
|
||||
//color toggle for the main switch
|
||||
if (power_user.instruct.enabled) {
|
||||
$('#instruct_enabled').parent().find('i').addClass('toggleEnabled');
|
||||
$('#instructSettingsBlock, #InstructSequencesColumn')
|
||||
.removeClass('disabled');
|
||||
} else {
|
||||
$('#instruct_enabled').parent().find('i').removeClass('toggleEnabled');
|
||||
$('#instructSettingsBlock, #InstructSequencesColumn')
|
||||
.addClass('disabled');
|
||||
}
|
||||
$('#instruct_enabled').parent().find('i').toggleClass('toggleEnabled', !!power_user.instruct.enabled);
|
||||
$('#instructSettingsBlock, #InstructSequencesColumn').toggleClass('disabled', !power_user.instruct.enabled);
|
||||
|
||||
if (!power_user.instruct.bind_to_context) {
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user