Mercurial > hg
comparison mercurial/templates/monoblue/graph.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 | 45a816361926 |
children | 5faaa31a6082 |
comparison
equal
deleted
inserted
replaced
35653:48fe4f56a3b4 | 35654:59c842a3d1e1 |
---|---|
49 | 49 |
50 <script type="text/javascript"{if(nonce, ' nonce="{nonce}"')}> | 50 <script type="text/javascript"{if(nonce, ' nonce="{nonce}"')}> |
51 ajaxScrollInit( | 51 ajaxScrollInit( |
52 '{url|urlescape}graph/%next%{graphvars%urlparameter}', | 52 '{url|urlescape}graph/%next%{graphvars%urlparameter}', |
53 '{nextentry%"{node}"}', <!-- NEXTHASH | 53 '{nextentry%"{node}"}', <!-- NEXTHASH |
54 function (htmlText, previousVal) \{ | 54 function (htmlText) \{ |
55 var m = htmlText.match(/'(\w+)', <!-- NEXTHASH/); | 55 var m = htmlText.match(/'(\w+)', <!-- NEXTHASH/); |
56 return m ? m[1] : null; | 56 return m ? m[1] : null; |
57 }, | 57 }, |
58 '#wrapper', | 58 '#wrapper', |
59 '<div class="%class%" style="text-align: center;">%text%</div>', | 59 '<div class="%class%" style="text-align: center;">%text%</div>', |