From 733bb8404484e3a1f9e8dbde3a1a72119d8d49bf Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Thu, 5 Sep 2024 20:16:58 +0300 Subject: [PATCH] Fix "system as user" toggle --- public/index.html | 2 +- public/scripts/instruct-mode.js | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/public/index.html b/public/index.html index fc67b8966..9a495629b 100644 --- a/public/index.html +++ b/public/index.html @@ -6504,4 +6504,4 @@ - \ No newline at end of file + diff --git a/public/scripts/instruct-mode.js b/public/scripts/instruct-mode.js index 400dcc9da..9efd92dc3 100644 --- a/public/scripts/instruct-mode.js +++ b/public/scripts/instruct-mode.js @@ -614,13 +614,13 @@ jQuery(() => { if (state) { $('#instruct_system_sequence_block').addClass('disabled'); $('#instruct_system_suffix_block').addClass('disabled'); - $('#instruct_system_sequence').prop('contenteditable', false); - $('#instruct_system_suffix').prop('contenteditable', false); + $('#instruct_system_sequence').prop('readOnly', true); + $('#instruct_system_suffix').prop('readOnly', true); } else { $('#instruct_system_sequence_block').removeClass('disabled'); $('#instruct_system_suffix_block').removeClass('disabled'); - $('#instruct_system_sequence').prop('contenteditable', true); - $('#instruct_system_suffix').prop('contenteditable', true); + $('#instruct_system_sequence').prop('readOnly', false); + $('#instruct_system_suffix').prop('readOnly', false); } });