Mercurial > hg
comparison mercurial/templates/gitweb/shortlog.tmpl @ 35654:59c842a3d1e1
hgweb: remove unused second argument of nextPageVarGet()
nextPageVarGet is a function that's used in ajaxScrollInit() to produce URL of
the next page. Before f84b01257e06, its second argument previousVal was a
number on /graph pages, and the code was simply adding 60 to it and returning
the resulting value. Now previousVal can only be a string containing changeset
hash, which can't be used the same way (and in fact isn't used in any way).
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Mon, 15 Jan 2018 19:44:18 +0800 |
parents | 816a4fa7d5f8 |
children |
comparison
equal
deleted
inserted
replaced
35653:48fe4f56a3b4 | 35654:59c842a3d1e1 |
---|---|
39 | 39 |
40 <script type="text/javascript"{if(nonce, ' nonce="{nonce}"')}> | 40 <script type="text/javascript"{if(nonce, ' nonce="{nonce}"')}> |
41 ajaxScrollInit( | 41 ajaxScrollInit( |
42 '{url|urlescape}shortlog/%next%{sessionvars%urlparameter}', | 42 '{url|urlescape}shortlog/%next%{sessionvars%urlparameter}', |
43 '{nextentry%"{node}"}', <!-- NEXTHASH | 43 '{nextentry%"{node}"}', <!-- NEXTHASH |
44 function (htmlText, previousVal) \{ | 44 function (htmlText) \{ |
45 var m = htmlText.match(/'(\w+)', <!-- NEXTHASH/); | 45 var m = htmlText.match(/'(\w+)', <!-- NEXTHASH/); |
46 return m ? m[1] : null; | 46 return m ? m[1] : null; |
47 }, | 47 }, |
48 '.shortlogtable > tbody:nth-of-type(1)', | 48 '.shortlogtable > tbody:nth-of-type(1)', |
49 '<tr class="%class%">\ | 49 '<tr class="%class%">\ |