# HG changeset patch # User Alexander Plavin # Date 2013-09-06 09:30:58 # Node ID 2ac4e89ad769282a19d4b05c533c354b787e131b # Parent 1b8054b98d6888eca2329ea1a12578c9af2f3a7c hgweb: add CSS class to the last entry on a page The entry which was last before an ajax load now has a specific CSS class for easier styling. diff --git a/mercurial/templates/static/mercurial.js b/mercurial/templates/static/mercurial.js --- a/mercurial/templates/static/mercurial.js +++ b/mercurial/templates/static/mercurial.js @@ -367,6 +367,7 @@ function ajaxScrollInit(urlFormat, if (scrollHeight - (scrollTop + clientHeight) < 50) { updateInitiated = true; removeByClassName('scroll-loading-error'); + container.lastElementChild.classList.add('scroll-separator'); if (!nextHash) { var message = {