hgweb: add CSS class to the last entry on a page
authorAlexander Plavin <alexander@plav.in>
Fri, 06 Sep 2013 13:30:58 +0400
changeset 19760 2ac4e89ad769
parent 19759 1b8054b98d68
child 19761 b5c601035005
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.
mercurial/templates/static/mercurial.js
--- a/mercurial/templates/static/mercurial.js	Thu Sep 19 15:29:28 2013 -0400
+++ b/mercurial/templates/static/mercurial.js	Fri Sep 06 13:30:58 2013 +0400
@@ -367,6 +367,7 @@
         if (scrollHeight - (scrollTop + clientHeight) < 50) {
             updateInitiated = true;
             removeByClassName('scroll-loading-error');
+            container.lastElementChild.classList.add('scroll-separator');
 
             if (!nextHash) {
                 var message = {