Mercurial > hg
comparison mercurial/templates/paper/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 |
---|---|
68 | 68 |
69 <script type="text/javascript"{if(nonce, ' nonce="{nonce}"')}> | 69 <script type="text/javascript"{if(nonce, ' nonce="{nonce}"')}> |
70 ajaxScrollInit( | 70 ajaxScrollInit( |
71 '{url|urlescape}graph/%next%{graphvars%urlparameter}', | 71 '{url|urlescape}graph/%next%{graphvars%urlparameter}', |
72 '{nextentry%"{node}"}', <!-- NEXTHASH | 72 '{nextentry%"{node}"}', <!-- NEXTHASH |
73 function (htmlText, previousVal) \{ | 73 function (htmlText) \{ |
74 var m = htmlText.match(/'(\w+)', <!-- NEXTHASH/); | 74 var m = htmlText.match(/'(\w+)', <!-- NEXTHASH/); |
75 return m ? m[1] : null; | 75 return m ? m[1] : null; |
76 }, | 76 }, |
77 '#wrapper', | 77 '#wrapper', |
78 '<div class="%class%" style="text-align: center;">%text%</div>', | 78 '<div class="%class%" style="text-align: center;">%text%</div>', |