fix 500 error
parent
f28e923cc6
commit
266036cd32
|
@ -135,11 +135,6 @@ socket.on('speak', function(json) {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
let chat_id = 'chat'
|
|
||||||
const chat_id_el = document.getElementById('chat_id')
|
|
||||||
if (chat_id_el)
|
|
||||||
chat_id = chat_id_el.value
|
|
||||||
|
|
||||||
function send() {
|
function send() {
|
||||||
const text = ta.value.trim();
|
const text = ta.value.trim();
|
||||||
const input = document.getElementById('file');
|
const input = document.getElementById('file');
|
||||||
|
@ -153,7 +148,7 @@ function send() {
|
||||||
"message": text,
|
"message": text,
|
||||||
"quotes": document.getElementById('quotes_id').value,
|
"quotes": document.getElementById('quotes_id').value,
|
||||||
"file": sending,
|
"file": sending,
|
||||||
"chat_id": chat_id,
|
"chat_id": document.getElementById('chat_id').value,
|
||||||
});
|
});
|
||||||
ta.value = ''
|
ta.value = ''
|
||||||
is_typing = false
|
is_typing = false
|
||||||
|
|
|
@ -67,6 +67,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<input id="chat_id" hidden value="{{chat.id}}">
|
||||||
<input id="vid" hidden value="{{v.id}}">
|
<input id="vid" hidden value="{{v.id}}">
|
||||||
<input id="slurreplacer" hidden value="{{v.slurreplacer}}">
|
<input id="slurreplacer" hidden value="{{v.slurreplacer}}">
|
||||||
<input id="admin_level" hidden value="{{v.admin_level}}">
|
<input id="admin_level" hidden value="{{v.admin_level}}">
|
||||||
|
|
Loading…
Reference in New Issue