ChatServer/pages/js/index.js

10 lines
257 B
JavaScript
Raw Normal View History

/**
* Created by Norbi on 2016-08-05.
*/
$(document).ready(function () {
var cmsgs = document.getElementById("channelmessages");
if (cmsgs != null && cmsgs.childElementCount > 0)
cmsgs.lastElementChild.scrollIntoView(false);
});