Commit 3ba12580 authored by JC Brand's avatar JC Brand

Store the isodate on chat messages in the DOM.

This will be useful later when we want to better place messages in the right
order.
parent 6bd0037c
......@@ -1435,6 +1435,7 @@
var message = template({
'sender': msg_dict.sender,
'time': msg_time.format('hh:mm'),
'isodate': msg_time,
'username': username,
'message': '',
'extra_classes': extra_classes
......
<div class="chat-message {{extra_classes}}">
<div class="chat-message {{extra_classes}}" data-isodate="{{isodate}}">
<span class="chat-message-{{sender}}">{{time}} **{{username}} </span>
<span class="chat-message-content">{{message}}</span>
</div>
<div class="chat-message {{extra_classes}}">
<div class="chat-message {{extra_classes}}" data-isodate="{{isodate}}">
<span class="chat-message-{{sender}}">{{time}} {{username}}:&nbsp;</span>
<span class="chat-message-content">{{message}}</span>
</div>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment