Mercurial > public > mercurial-scm > hg-stable
diff tests/test-hgweb-commands.t @ 19747:da3808bcfbfa
paper: call ajaxScrollInit in shortlog
This just calls ajaxScrollInit at the shortlog page template with all needed
agruments. So, infinite scrolling is working now there.
author | Alexander Plavin <alexander@plav.in> |
---|---|
date | Fri, 06 Sep 2013 13:30:57 +0400 |
parents | bf15935b68a3 |
children | 393e9f1fc4d2 |
line wrap: on
line diff
--- a/tests/test-hgweb-commands.t Wed Sep 18 22:44:12 2013 +0400 +++ b/tests/test-hgweb-commands.t Fri Sep 06 13:30:57 2013 +0400 @@ -305,6 +305,18 @@ | rev 3: <a href="/shortlog/2ef0ac749a14">(0)</a> <a href="/shortlog/tip">tip</a> </div> + <script type="text/javascript"> + ajaxScrollInit( + '/shortlog/%hash%', + '', <!-- NEXTHASH + /'(\w+)', <!-- NEXTHASH/, + '.bigtable > tbody:nth-of-type(2)', + '<tr class="%class%">\ + <td colspan="3" style="text-align: center;">%text%</td>\ + </tr>' + ); + </script> + </div> </div>