changeset 19760:2ac4e89ad769

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.
author Alexander Plavin <alexander@plav.in>
date Fri, 06 Sep 2013 13:30:58 +0400
parents 1b8054b98d68
children b5c601035005
files mercurial/templates/static/mercurial.js
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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 = {