mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2024-12-11 08:57:11 +01:00
Fix "system as user" toggle
This commit is contained in:
parent
5c7b95cc15
commit
733bb84044
@ -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);
|
||||
}
|
||||
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user