From patchwork Sat Aug 17 22:33:06 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [1,of,9,V2] hgweb: add CSS class to the last entry on a page From: Alexander Plavin X-Patchwork-Id: 2211 Message-Id: <071ef2e72dfbf110ec46.1376778786@debian-alexander.dolgopa> To: mercurial-devel@selenic.com Date: Sun, 18 Aug 2013 02:33:06 +0400 # HG changeset patch # User Alexander Plavin # Date 1376765427 -14400 # Sat Aug 17 22:50:27 2013 +0400 # Node ID 071ef2e72dfbf110ec46ddd74300b6fd390b2a48 # Parent cc33d3be1c64be93bf38452e287a1a4a929dd97f 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. diff -r cc33d3be1c64 -r 071ef2e72dfb mercurial/templates/static/mercurial.js --- a/mercurial/templates/static/mercurial.js Sat Aug 17 15:53:05 2013 +0400 +++ b/mercurial/templates/static/mercurial.js Sat Aug 17 22:50:27 2013 +0400 @@ -355,6 +355,7 @@ if (scrollHeight - (scrollTop + clientHeight) < 50) { updateInitiated = true; + container.lastElementChild.classList.add('scroll-separator'); if (!nextHash) { return;