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 () {
|
$('#instruct_enabled').on('change', function () {
|
||||||
//color toggle for the main switch
|
//color toggle for the main switch
|
||||||
if (power_user.instruct.enabled) {
|
$('#instruct_enabled').parent().find('i').toggleClass('toggleEnabled', !!power_user.instruct.enabled);
|
||||||
$('#instruct_enabled').parent().find('i').addClass('toggleEnabled');
|
$('#instructSettingsBlock, #InstructSequencesColumn').toggleClass('disabled', !power_user.instruct.enabled);
|
||||||
$('#instructSettingsBlock, #InstructSequencesColumn')
|
|
||||||
.removeClass('disabled');
|
|
||||||
} else {
|
|
||||||
$('#instruct_enabled').parent().find('i').removeClass('toggleEnabled');
|
|
||||||
$('#instructSettingsBlock, #InstructSequencesColumn')
|
|
||||||
.addClass('disabled');
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!power_user.instruct.bind_to_context) {
|
if (!power_user.instruct.bind_to_context) {
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user