2016-08-05 11:39:31 +00:00
|
|
|
/**
|
|
|
|
* Created by Norbi on 2016-08-05.
|
|
|
|
*/
|
|
|
|
|
|
|
|
$(document).ready(function () {
|
|
|
|
var cmsgs = document.getElementById("channelmessages");
|
2016-08-09 10:12:46 +00:00
|
|
|
if (cmsgs != null && cmsgs.childElementCount > 0) {
|
|
|
|
cmsgs.forEach(function (item) {
|
|
|
|
var ctime = item.getElementById("converttime");
|
|
|
|
ctime.innerText = new Date(ctime.innerText * 1).toDateString();
|
|
|
|
});
|
2016-08-05 11:39:31 +00:00
|
|
|
cmsgs.lastElementChild.scrollIntoView(false);
|
2016-08-09 10:12:46 +00:00
|
|
|
}
|
2016-08-05 11:39:31 +00:00
|
|
|
});
|