Missing radix parameter
This commit is contained in:
parent
bc66c137f3
commit
bd5a9ed1a2
1 changed files with 4 additions and 4 deletions
|
@ -477,12 +477,12 @@ function loadChatMessages() {
|
||||||
});
|
});
|
||||||
$.each(sorted, function (i, msg) {
|
$.each(sorted, function (i, msg) {
|
||||||
var chathtml = '<div class=\"msg\">';
|
var chathtml = '<div class=\"msg\">';
|
||||||
chathtml += '<span class=\"time\">' + $.format.date(new Date(parseInt(msg.time)), 'hh:mm:ss a') + '</span> ';
|
chathtml += '<span class=\"time\">' + $.format.date(new Date(parseInt(msg.time, 10)), 'hh:mm:ss a') + '</span> ';
|
||||||
chathtml += '<span class=\"user\">' + msg.username + '</span></br>';
|
chathtml += '<span class=\"user\">' + msg.username + '</span></br>';
|
||||||
chathtml += '<span class=\"msg\">' + msg.message + '</span>';
|
chathtml += '<span class=\"msg\">' + msg.message + '</span>';
|
||||||
chathtml += '</div>';
|
chathtml += '</div>';
|
||||||
$(chathtml).appendTo("#ChatMsgs");
|
$(chathtml).appendTo("#ChatMsgs");
|
||||||
if (i = 1) {
|
if (i === 1) {
|
||||||
starttime = msg.time;
|
starttime = msg.time;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -516,12 +516,12 @@ function updateChatMessages() {
|
||||||
});
|
});
|
||||||
$.each(sorted, function (i, msg) {
|
$.each(sorted, function (i, msg) {
|
||||||
var chathtml = '<div class=\"msg\">';
|
var chathtml = '<div class=\"msg\">';
|
||||||
chathtml += '<span class=\"time\">' + $.format.date(new Date(parseInt(msg.time)), 'hh:mm:ss a') + '</span> ';
|
chathtml += '<span class=\"time\">' + $.format.date(new Date(parseInt(msg.time, 10)), 'hh:mm:ss a') + '</span> ';
|
||||||
chathtml += '<span class=\"user\">' + msg.username + '</span></br>';
|
chathtml += '<span class=\"user\">' + msg.username + '</span></br>';
|
||||||
chathtml += '<span class=\"msg\">' + msg.message + '</span>';
|
chathtml += '<span class=\"msg\">' + msg.message + '</span>';
|
||||||
chathtml += '</div>';
|
chathtml += '</div>';
|
||||||
$(chathtml).appendTo("#ChatMsgs");
|
$(chathtml).appendTo("#ChatMsgs");
|
||||||
if (i = 1) {
|
if (i === 1) {
|
||||||
starttime = msg.time;
|
starttime = msg.time;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue