X-Git-Url: http://git.scottworley.com/reliable-chat/blobdiff_plain/4b184c5fc3d493d2b76b50aabb2ce2a65a488f4b..5be4c8ec1ede8eda3a9a164816cef914169a2674:/webclient/rc.html?ds=inline diff --git a/webclient/rc.html b/webclient/rc.html index 573ee6a..4137de1 100644 --- a/webclient/rc.html +++ b/webclient/rc.html @@ -195,6 +195,14 @@ history.splice(hi,1); rcaddmessagetohistory(message); } + + // Update the UI + var spans = message.UI.getElementsByTagName("span"); + for (var i in spans) { + if (spans[i].getAttribute && spans[i].getAttribute("class") == "timestamp") { + spans[i].firstChild.data = rcformattime(message.Time); + } + } } function rcreceivemessages(server, messages) {