demarches-normaliennes/app/assets/javascripts/new_design/messagerie.js
2017-09-13 16:27:08 +02:00

8 lines
218 B
JavaScript

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