From patchwork Wed May 6 23:27:32 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [STABLE] hgweb: bring back infinite scroll in shortlog of paper style From: Yuya Nishihara X-Patchwork-Id: 8934 Message-Id: <395f380c5f36e3843fe2.1430954852@mimosa> To: mercurial-devel@selenic.com Date: Thu, 07 May 2015 08:27:32 +0900 # HG changeset patch # User Yuya Nishihara # Date 1430952399 -32400 # Thu May 07 07:46:39 2015 +0900 # Branch stable # Node ID 395f380c5f36e3843fe2fa9742f04921b2cb94de # Parent 5bc506ee87d261269f4c173f607f0e08efce2fab hgweb: bring back infinite scroll in shortlog of paper style Since fdf7794be41d, column headers are wrapped by element, so the first and only contains changelog data. I got the following error without this patch: Uncaught TypeError: Cannot read property 'lastElementChild' of null scrollHandler @ mercurial.js:375 diff --git a/mercurial/templates/paper/shortlog.tmpl b/mercurial/templates/paper/shortlog.tmpl --- a/mercurial/templates/paper/shortlog.tmpl +++ b/mercurial/templates/paper/shortlog.tmpl @@ -80,7 +80,7 @@ var m = htmlText.match(/'(\w+)',