max_prompt_length also hidden when using chatgpt_web. see #165
This commit is contained in:
parent
327d5be4a1
commit
8a471c44be
2 changed files with 3 additions and 1 deletions
|
|
@ -220,7 +220,7 @@
|
|||
</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<tr id="max_prompt_length_tr">
|
||||
<td><span>__MSG_prefs_OptionText_max_prompt_length__</span></td>
|
||||
<td>
|
||||
<label>
|
||||
|
|
|
|||
|
|
@ -208,6 +208,8 @@ function disable_MaxPromptLength(){
|
|||
let maxPromptLength = document.getElementById('max_prompt_length');
|
||||
let conntype_select = document.getElementById("connection_type");
|
||||
maxPromptLength.disabled = (conntype_select.value === "chatgpt_web");
|
||||
let maxPromptLength_tr = document.getElementById('max_prompt_length_tr');
|
||||
maxPromptLength_tr.style.display = (maxPromptLength.disabled) ? 'none' : 'table-row';
|
||||
}
|
||||
|
||||
document.addEventListener('DOMContentLoaded', async () => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue