1
0
mirror of https://github.com/nerzhul/ocsms.git synced 2025-06-07 16:06:15 +00:00

month not global

This commit is contained in:
Loïc Blot (@U-Exp) 2014-09-26 18:56:51 +02:00
parent 59a5353586
commit 18fa72b60e

View File

@ -14,9 +14,6 @@ var selectedConversation = null;
var curPhoneNumber = null;
var lastMsgDate = 0;
var months = ['Jan.', 'Feb.', 'Mar.', 'Apr.', 'May', 'Jun.', 'Jul.', 'Aug.', 'Sep.',
'Oct.', 'Nov.', 'Dec.'];
// Source: http://www.sitepoint.com/url-parameters-jquery/
$.urlParam = function(name){
var results = new RegExp('[\?&]' + name + '=([^&#]*)').exec(window.location.href);
@ -67,6 +64,8 @@ function formatConversation(jsondata) {
var formatedDate = '';
var formatedHour = '00';
var formatedMin = '00';
var months = ['Jan.', 'Feb.', 'Mar.', 'Apr.', 'May', 'Jun.', 'Jul.', 'Aug.', 'Sep.',
'Oct.', 'Nov.', 'Dec.'];
$.each(jsondata["conversation"], function(id, vals) {
if (vals["type"] == 1) {