aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/chat.tpl
diff options
context:
space:
mode:
Diffstat (limited to 'view/tpl/chat.tpl')
-rw-r--r--view/tpl/chat.tpl19
1 files changed, 8 insertions, 11 deletions
diff --git a/view/tpl/chat.tpl b/view/tpl/chat.tpl
index 5c96e79fe..7073a0a52 100644
--- a/view/tpl/chat.tpl
+++ b/view/tpl/chat.tpl
@@ -1,14 +1,14 @@
<h1>{{$room_name}}</h1>
-<div id="chatContainer" style="height: 100%; width: 100%;">
+<div id="chatContainer"">
- <div id="chatTopBar" style="float: left; height: 400px; width: 650px; overflow-y: auto;">
+ <div id="chatTopBar">
<div id="chatLineHolder"></div>
</div>
- <div id="chatUsers" style="float: right; width: 120px; height: 100%; border: 1px solid #000;" ></div>
+ <div id="chatUsers"></div>
<div class="clear"></div>
- <div id="chatBottomBar" style="position: relative; bottom: 0; height: 150px; margin-top: 20px;">
+ <div id="chatBottomBar">
<div class="tip"></div>
<form id="chat-form" method="post" action="#">
@@ -17,14 +17,11 @@
<input type="submit" name="submit" value="{{$submit}}" />
</form>
+ <a href="{{$baseurl}}/chat/{{$nickname}}/{{$room_id}}/leave">{{$leave}}</a> | <a href="{{$baseurl}}/chatsvc?f=&room_id={{$room_id}}&status=away">{{$away}}</a> | <a href="{{$baseurl}}/chatsvc?f=&room_id={{$room_id}}&status=online">{{$online}}</a>
+
</div>
</div>
-<style>
-section {
- padding-bottom: 0;
-}
-</style>
<script>
var room_id = {{$room_id}};
@@ -50,8 +47,8 @@ $('#chat-form').submit(function(ev) {
function load_chats() {
- $.get("chatsvc?f=&room_id=" + room_id + '&last=' + last_chat,function(data) {
- if(data.success) {
+ $.get("chatsvc?f=&room_id=" + room_id + '&last=' + last_chat + ((stopped) ? '&stopped=1' : ''),function(data) {
+ if(data.success && (! stopped)) {
update_inroom(data.inroom);
update_chats(data.chats);
}