diff options
author | tv <tv@nomic.retiolum> | 2013-11-06 20:45:39 +0100 |
---|---|---|
committer | tv <tv@nomic.retiolum> | 2013-11-06 20:45:39 +0100 |
commit | d9b56ed3a1e1bb8a585c26301a979f1f2993a0eb (patch) | |
tree | c2661ccba67f1beaba1c47bf021db7a9401fffc9 /webchat/public/client.js | |
parent | 01cac2ee2e6f6394e6bd33cb63bec1103a727d11 (diff) | |
parent | 1c815ad777fadd5cfa6f54b20d4a0f02206fe7b7 (diff) |
Merge branch 'master' of https://github.com/krebscode/painload
Diffstat (limited to 'webchat/public/client.js')
-rw-r--r-- | webchat/public/client.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/webchat/public/client.js b/webchat/public/client.js index 95b67ad0..e13ab1f7 100644 --- a/webchat/public/client.js +++ b/webchat/public/client.js @@ -26,7 +26,7 @@ $(function connect() { var safe_message = $('<div/>').text(object.message).html(); safe_message = replaceURLWithHTMLLinks(safe_message); var safe_from = $('<div/>').text(object.from).html(); - $('#chatbox').append('<tr><td class="chat_from">'+safe_from+'</td><td class="chat_msg">'+safe_message+'</td></tr>'); + $('<tr><td class="chat_date">'+(new Date).getHours() + ':' + (new Date).getMinutes() + ':' + (new Date).getSeconds()+'</td><td class="chat_from">'+safe_from+'</td><td class="chat_msg">'+safe_message+'</td></tr>').insertBefore('#foot'); } catch (error) { console.log(error); |