##// END OF EJS Templates
paper: add infinite scrolling to graph by calling ajaxScrollInit at the page
Alexander Plavin -
r19783:1c2a309b default
parent child Browse files
Show More
@@ -123,6 +123,17 b' graph.render(data);'
123 123 | rev {rev}: {changenav%navgraph}
124 124 </div>
125 125
126 <script type="text/javascript">
127 ajaxScrollInit(
128 '{url|urlescape}graph/{rev}?revcount=%next%',
129 {revcount}+60,
130 function (htmlText, previousVal) \{ return previousVal + 60; },
131 '#wrapper',
132 '<div class="%class%" style="text-align: center;">%text%</div>',
133 'graph'
134 );
135 </script>
136
126 137 </div>
127 138 </div>
128 139
@@ -359,6 +359,17 b' Some tests for hgweb in an empty reposit'
359 359 | rev -1:
360 360 </div>
361 361
362 <script type="text/javascript">
363 ajaxScrollInit(
364 '/graph/-1?revcount=%next%',
365 60+60,
366 function (htmlText, previousVal) { return previousVal + 60; },
367 '#wrapper',
368 '<div class="%class%" style="text-align: center;">%text%</div>',
369 'graph'
370 );
371 </script>
372
362 373 </div>
363 374 </div>
364 375
General Comments 0
You need to be logged in to leave comments. Login now