mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 09:55:15 +00:00
commit
da1e7cc211
1 changed files with 4 additions and 3 deletions
|
@ -28,6 +28,7 @@ $('#chat-form').submit(function(ev) {
|
|||
$('body').css('cursor','wait');
|
||||
$.post("chatsvc", $('#chat-form').serialize(),function(data) {
|
||||
if(chat_timer) clearTimeout(chat_timer);
|
||||
$('#chatText').val('');
|
||||
load_chats();
|
||||
$('body').css('cursor','auto');
|
||||
},'json');
|
||||
|
@ -40,9 +41,9 @@ function load_chats() {
|
|||
if(data.success) {
|
||||
update_inroom(data.inroom);
|
||||
update_chats(data.chats);
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
chat_timer = setTimeout(load_chats,10000);
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue