From da05d696e7469d67d6df76d28aad711ee0e828e7 Mon Sep 17 00:00:00 2001 From: Patrick Davison Date: Wed, 23 Jan 2013 22:38:30 -0800 Subject: Chat fixes --- ajax_chat.php | 2 ++ pages/admin.php | 1 + pages/chat.php | 9 +++++++-- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ajax_chat.php b/ajax_chat.php index 04a6fd4..2b6d909 100644 --- a/ajax_chat.php +++ b/ajax_chat.php @@ -1,5 +1,7 @@ 0) { - dataString += '&send=true&messages='+chatBuffer.join('|:|'); + dataString += '&send=true&messages='+prepChat(chatBuffer); chatBuffer.length = 0; } //$.getJSON('ajax_chat.php?getChatFromID='+lastID++message, ); @@ -206,7 +212,6 @@ function getChat(message) { data: dataString, success: function(data) {getChatDone(data);} }); - } function sendChat() { -- cgit v1.2.3