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 (message && connected) {
|
||||
$inputMessage.val('');
|
||||
$('#send-message-btn').removeClass('active');
|
||||
addChatMessage({
|
||||
username: username,
|
||||
message: message
|
||||
@ -256,7 +257,7 @@ $(function() {
|
||||
}
|
||||
});
|
||||
|
||||
$inputMessage.on('input', function() {
|
||||
$inputMessage.on('input propertychange paste change', function() {
|
||||
updateTyping();
|
||||
var message = $(this).val().trim();
|
||||
if (message.length) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user