diff --git a/public/index.html b/public/index.html index 21efabdc6..ee429bea6 100644 --- a/public/index.html +++ b/public/index.html @@ -3196,7 +3196,7 @@
-
+

Instruct Mode @@ -3206,12 +3206,12 @@

@@ -3266,41 +3266,43 @@ Force for Groups and Personas
-
-
-
-

Tokenizer - +

+
+
+
+

Tokenizer + + + +

+ +
+
+
+ Token Padding + - - -
-
-
- Token Padding - - - - -
- +
+
- +
+
+

Misc.

diff --git a/public/scripts/instruct-mode.js b/public/scripts/instruct-mode.js index f86c3c782..c940a7fee 100644 --- a/public/scripts/instruct-mode.js +++ b/public/scripts/instruct-mode.js @@ -87,8 +87,16 @@ export async function loadInstructMode(data) { 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'); + } + + if (power_user.instruct.bind_to_context) { + $('#instruct_bind_to_context').parent().find('i').addClass('toggleEnabled'); + } else { + $('#instruct_bind_to_context').parent().find('i').removeClass('toggleEnabled'); } controls.forEach(control => { @@ -639,8 +647,12 @@ jQuery(() => { //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'); } if (!power_user.instruct.bind_to_context) { @@ -656,6 +668,14 @@ jQuery(() => { } }); + $('#instruct_bind_to_context').on('change', function () { + if (power_user.instruct.bind_to_context) { + $('#instruct_bind_to_context').parent().find('i').addClass('toggleEnabled'); + } else { + $('#instruct_bind_to_context').parent().find('i').removeClass('toggleEnabled'); + } + }); + $('#instruct_presets').on('change', function () { const name = String($(this).find(':selected').val()); const preset = instruct_presets.find(x => x.name === name);