From 6c6a9b963a925d33b2cc436d877a4edc5f0d59b1 Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 30 Jan 2014 01:00:46 -0800 Subject: a bit more ajax work on chat and chatsvc and some fiddling with layouts --- include/chat.php | 2 +- mod/chatsvc.php | 3 ++- version.inc | 2 +- view/tpl/chat.tpl | 35 +++++++++++++++++++++++++---------- 4 files changed, 29 insertions(+), 13 deletions(-) diff --git a/include/chat.php b/include/chat.php index aef154fe6..b88c63fc3 100644 --- a/include/chat.php +++ b/include/chat.php @@ -155,7 +155,7 @@ function chatroom_leave($observer_xchan,$room_id,$client) { function chatroom_list($uid) { - $r = q("select cr_name, cr_id, count(cp_id) as cr_inroom from chatroom left join chatpresence on cr_id = cp_room where cr_uid = %d group by cp_id order by cr_name", + $r = q("select cr_name, cr_id, count(cp_id) as cr_inroom from chatroom left join chatpresence on cr_id = cp_room where cr_uid = %d group by cr_name order by cr_name", intval($uid) ); diff --git a/mod/chatsvc.php b/mod/chatsvc.php index 39161b5a7..d76a87462 100644 --- a/mod/chatsvc.php +++ b/mod/chatsvc.php @@ -59,7 +59,8 @@ function chatsvc_post(&$a) { dbesc(datetime_convert()), dbesc($text) ); - + $ret['success'] = true; + json_return_and_die($ret); } function chatsvc_content(&$a) { diff --git a/version.inc b/version.inc index 36c8c7342..e8ad6394a 100644 --- a/version.inc +++ b/version.inc @@ -1 +1 @@ -2014-01-29.572 +2014-01-30.573 diff --git a/view/tpl/chat.tpl b/view/tpl/chat.tpl index d0f9418a0..13862c339 100644 --- a/view/tpl/chat.tpl +++ b/view/tpl/chat.tpl @@ -1,11 +1,12 @@ -
+
-
+
-
+
-
+
+
@@ -20,24 +21,38 @@ -- cgit v1.2.3