diff mercurial/templates/paper/shortlog.tmpl @ 24952:169d2470d283 stable

hgweb: bring back infinite scroll in shortlog of paper style Since fdf7794be41d, column headers are wrapped by <thead> element, so the first and only <tbody> contains changelog data. I got the following error without this patch: Uncaught TypeError: Cannot read property 'lastElementChild' of null scrollHandler @ mercurial.js:375
author Yuya Nishihara <yuya@tcha.org>
date Thu, 07 May 2015 07:46:39 +0900
parents fdf7794be41d
children 3bb6f5f478a7
line wrap: on
line diff
--- a/mercurial/templates/paper/shortlog.tmpl	Wed May 06 09:52:10 2015 -0700
+++ b/mercurial/templates/paper/shortlog.tmpl	Thu May 07 07:46:39 2015 +0900
@@ -80,7 +80,7 @@
                 var m = htmlText.match(/'(\w+)', <!-- NEXTHASH/);
                 return m ? m[1] : null;
             },
-            '.bigtable > tbody:nth-of-type(2)',
+            '.bigtable > tbody',
             '<tr class="%class%">\\
             <td colspan="3" style="text-align: center;">%text%</td>\\
             </tr>'