commit
da1e7cc211
@ -28,6 +28,7 @@ $('#chat-form').submit(function(ev) {
|
|||||||
$('body').css('cursor','wait');
|
$('body').css('cursor','wait');
|
||||||
$.post("chatsvc", $('#chat-form').serialize(),function(data) {
|
$.post("chatsvc", $('#chat-form').serialize(),function(data) {
|
||||||
if(chat_timer) clearTimeout(chat_timer);
|
if(chat_timer) clearTimeout(chat_timer);
|
||||||
|
$('#chatText').val('');
|
||||||
load_chats();
|
load_chats();
|
||||||
$('body').css('cursor','auto');
|
$('body').css('cursor','auto');
|
||||||
},'json');
|
},'json');
|
||||||
@ -40,8 +41,8 @@ function load_chats() {
|
|||||||
if(data.success) {
|
if(data.success) {
|
||||||
update_inroom(data.inroom);
|
update_inroom(data.inroom);
|
||||||
update_chats(data.chats);
|
update_chats(data.chats);
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
});
|
||||||
|
|
||||||
chat_timer = setTimeout(load_chats,10000);
|
chat_timer = setTimeout(load_chats,10000);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user