diff options
author | marijus <mario@localhost.localdomain> | 2014-01-30 13:25:07 +0100 |
---|---|---|
committer | marijus <mario@localhost.localdomain> | 2014-01-30 13:25:07 +0100 |
commit | 13a5dfacb6a1d9f123ac43be2ea3537a1a4f6a19 (patch) | |
tree | 9650c685e6f854a07dfcb709ada9e21796d8392c /view | |
parent | 3d43553b2043b235730f1add9d680a96bc9d8530 (diff) | |
parent | 48bc9b546cdc0fae23efc3756e37ce59dc81737a (diff) | |
download | volse-hubzilla-13a5dfacb6a1d9f123ac43be2ea3537a1a4f6a19.tar.gz volse-hubzilla-13a5dfacb6a1d9f123ac43be2ea3537a1a4f6a19.tar.bz2 volse-hubzilla-13a5dfacb6a1d9f123ac43be2ea3537a1a4f6a19.zip |
Merge branch 'master' of https://github.com/friendica/red
Diffstat (limited to 'view')
-rw-r--r-- | view/tpl/chat.tpl | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/view/tpl/chat.tpl b/view/tpl/chat.tpl index 13862c339..c65c117cd 100644 --- a/view/tpl/chat.tpl +++ b/view/tpl/chat.tpl @@ -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); } |