]> code.citadel.org Git - citadel.git/blobdiff - webcit/static/t/roomchat.html
* Added some style to the roomchat window.
[citadel.git] / webcit / static / t / roomchat.html
index e5de02af384651a4cabc0ed9b5a503263fceb764..5cb9559b6efcb72ac0bcee7a0c68e03fbd08a56c 100644 (file)
@@ -5,8 +5,10 @@
 <div id="chatsend" class="chatsend">
 <form method="POST" onsubmit="return chatsendfunc()" action="chat_send" id="chatsendid" name="chatsendform">
 <input type="hidden" name="nonce" value="<?NONCE>">
-<img src="static/citadelchat_16x.gif">
-<input type="text" size="80" maxlength="1024" id="send_this_id" name="send_this">
+<img src="static/citadelchat_32x.gif">
+<textarea maxlength="1024" id="send_this_id" name="send_this" wrap="soft" rows="5" cols="80"
+ onKeyPress="chat_enter(event);"></textarea>
+<input type="submit" value="<?_("Send")>">
 </div>
 
 <script type="text/javascript">
@@ -18,6 +20,13 @@ function chatsendfunc() {
        return false;
 }
 
+function chat_enter(evt) {
+       var charCode = (evt.which) ? evt.which : window.event.keyCode; 
+       if (charCode == 13) {
+               chatsendfunc();
+       }
+}
+
 new Ajax.PeriodicalUpdater('chatrecv', 'chat_recv', {
        method: 'get', frequency: 2,
                onSuccess: function(){