1
0
mirror of https://github.com/nerzhul/ocsms.git synced 2025-07-23 09:55:44 +00:00
This commit is contained in:
Loïc Blot (@U-Exp) 2014-09-26 18:26:56 +02:00
commit f62272ee46

View File

@ -61,7 +61,7 @@ function fetchConversation(phoneNumber) {
if (formatedMin < 10) { if (formatedMin < 10) {
formatedMin = '0' + formatedMin; formatedMin = '0' + formatedMin;
} }
formatedDate = msgDate.getDate() + " " + months[msgDate.getMonth()-1] + " " + formatedDate = msgDate.getDate() + " " + months[msgDate.getMonth()] + " " +
formatedHour + ":" + formatedMin; formatedHour + ":" + formatedMin;
conversationBuf += '<div><div class="' + msgClass + '"><div>' + conversationBuf += '<div><div class="' + msgClass + '"><div>' +
@ -77,10 +77,10 @@ function fetchConversation(phoneNumber) {
function changeSelectedConversation(item) { function changeSelectedConversation(item) {
if (selectedConversation != null) { if (selectedConversation != null) {
selectedConversation.removeClass('active'); selectedConversation.parent().removeClass('selected');
} }
selectedConversation = $(this); selectedConversation = item;
selectedConversation.addClass('active'); selectedConversation.parent().addClass('selected');
} }
(function ($, OC) { (function ($, OC) {