mirror of
https://github.com/darkwire/darkwire.io.git
synced 2025-07-18 18:54:52 +00:00
Set send icon inactive after sending message
This commit is contained in:
parent
fc8dae8217
commit
d4010ff2c5
@ -87,6 +87,7 @@ $(function() {
|
|||||||
// if there is a non-empty message and a socket connection
|
// if there is a non-empty message and a socket connection
|
||||||
if (message && connected) {
|
if (message && connected) {
|
||||||
$inputMessage.val('');
|
$inputMessage.val('');
|
||||||
|
$('#send-message-btn').removeClass('active');
|
||||||
addChatMessage({
|
addChatMessage({
|
||||||
username: username,
|
username: username,
|
||||||
message: message
|
message: message
|
||||||
@ -256,7 +257,7 @@ $(function() {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
$inputMessage.on('input', function() {
|
$inputMessage.on('input propertychange paste change', function() {
|
||||||
updateTyping();
|
updateTyping();
|
||||||
var message = $(this).val().trim();
|
var message = $(this).val().trim();
|
||||||
if (message.length) {
|
if (message.length) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user