typo and clear chattext after submission

This commit is contained in:
friendica 2014-01-30 03:51:25 -08:00
parent 6c6a9b963a
commit 48bc9b546c

View File

@ -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,8 +41,8 @@ function load_chats() {
if(data.success) {
update_inroom(data.inroom);
update_chats(data.chats);
});
}
});
chat_timer = setTimeout(load_chats,10000);