mercurial/templates/gitweb/graph.tmpl
changeset 35409 f84b01257e06
parent 35407 27ab3150cd50
child 35415 56854848e485
--- a/mercurial/templates/gitweb/graph.tmpl	Mon Dec 11 13:47:58 2017 +0800
+++ b/mercurial/templates/gitweb/graph.tmpl	Mon Dec 11 15:43:56 2017 +0800
@@ -67,9 +67,12 @@
 
 <script type="text/javascript"{if(nonce, ' nonce="{nonce}"')}>
     ajaxScrollInit(
-            '{url|urlescape}graph/{rev}?revcount=%next%&style={style}',
-            {revcount}+60,
-            function (htmlText, previousVal) \{ return previousVal + 60; },
+            '{url|urlescape}graph/%next%{graphvars%urlparameter}',
+            '{nextentry%"{node}"}', <!-- NEXTHASH
+            function (htmlText, previousVal) \{
+                var m = htmlText.match(/'(\w+)', <!-- NEXTHASH/);
+                return m ? m[1] : null;
+            },
             '#wrapper',
             '<div class="%class%" style="text-align: center;">%text%</div>',
             'graph'