Maybe instant message

This commit is contained in:
2024-06-08 18:38:19 +02:00
parent b2dd946917
commit 84f6b9e381
7 changed files with 85 additions and 54 deletions
+3 -3
View File
@@ -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) {