demarches-normaliennes/app/assets/javascripts/new_design/messagerie.js

9 lines
218 B
JavaScript
Raw Normal View History

TPS.scrollMessagerie = function () {
var $ul = $(".messagerie ul").first();
if($ul.length) {
$ul.scrollTop($ul.prop('scrollHeight'));
}
};
document.addEventListener("turbolinks:load", TPS.scrollMessagerie);