aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-01-30 03:51:25 -0800
committerfriendica <info@friendica.com>2014-01-30 03:51:25 -0800
commit48bc9b546cdc0fae23efc3756e37ce59dc81737a (patch)
tree9650c685e6f854a07dfcb709ada9e21796d8392c
parent6c6a9b963a925d33b2cc436d877a4edc5f0d59b1 (diff)
downloadvolse-hubzilla-48bc9b546cdc0fae23efc3756e37ce59dc81737a.tar.gz
volse-hubzilla-48bc9b546cdc0fae23efc3756e37ce59dc81737a.tar.bz2
volse-hubzilla-48bc9b546cdc0fae23efc3756e37ce59dc81737a.zip
typo and clear chattext after submission
-rw-r--r--view/tpl/chat.tpl7
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);
}