Maybe instant message
This commit is contained in:
@@ -27,7 +27,7 @@
|
||||
<button disabled type="submit" class="send-button button is-primary is-small" hx-post="/generatePlaceholder"
|
||||
hx-swap="beforeend" hx-target="#chat-messages" id="chat-input-send-btn" class="chat-input"
|
||||
hx-include="[name='message']" hx-vals="js:{selectedLLMIds: getSelectedModelsIDs()}"
|
||||
onclick="clearTextArea()">
|
||||
onclick="onClickSendButton()">
|
||||
<span class="icon">
|
||||
<i class="fa-solid fa-chevron-right"></i>
|
||||
</span>
|
||||
@@ -94,11 +94,11 @@
|
||||
document.getElementById('chat-input-send-btn').disabled = textarea.value.trim().length === 0 || document.getElementsByClassName('selected icon-llm').length === 0 || generateMultipleMessages !== null;
|
||||
}
|
||||
|
||||
function clearTextArea() {
|
||||
function onClickSendButton() {
|
||||
setTimeout(function () {
|
||||
textarea.value = '';
|
||||
toggleSendButton();
|
||||
}, 200);
|
||||
}, 20);
|
||||
}
|
||||
|
||||
function updateIcon(icon, ConversationAreaId) {
|
||||
|
||||
Reference in New Issue
Block a user