Code clean-up

016e3df564537aa05614d28d4ce0b4de4e90aa13

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +2 -9Ignore whitespace
public/scripts/instruct-mode.js+2 -9
@@ -629,15 +629,8 @@ jQuery(() => {
629629
630 $('#instruct_enabled').on('change', function () {630 $('#instruct_enabled').on('change', function () {
631 //color toggle for the main switch631 //color toggle for the main switch
632 if (power_user.instruct.enabled) {632 $('#instruct_enabled').parent().find('i').toggleClass('toggleEnabled', !!power_user.instruct.enabled);
633 $('#instruct_enabled').parent().find('i').addClass('toggleEnabled');633 $('#instructSettingsBlock, #InstructSequencesColumn').toggleClass('disabled', !power_user.instruct.enabled);
634 $('#instructSettingsBlock, #InstructSequencesColumn')
635 .removeClass('disabled');
636 } else {
637 $('#instruct_enabled').parent().find('i').removeClass('toggleEnabled');
638 $('#instructSettingsBlock, #InstructSequencesColumn')
639 .addClass('disabled');
640 }
641634
642 if (!power_user.instruct.bind_to_context) {635 if (!power_user.instruct.bind_to_context) {
643 return;636 return;