[PATCH 2 of 2] paper: call ajaxScrollInit in shortlog
Martin Geisler
martin at geisler.net
Thu Sep 19 01:59:12 CDT 2013
Alexander Plavin <alexander at plav.in> writes:
> # HG changeset patch
> # User Alexander Plavin <alexander at plav.in>
> # Date 1378459857 -14400
> # Fri Sep 06 13:30:57 2013 +0400
> # Node ID 0032f7b54b7bb23b35574f774d37ba763a8e5199
> # Parent 0a792989e90204557812427f02ba2f176f08d8c1
> 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.
>
> diff -r 0a792989e902 -r 0032f7b54b7b mercurial/templates/paper/shortlog.tmpl
> --- a/mercurial/templates/paper/shortlog.tmpl Wed Sep 18 22:44:12 2013 +0400
> +++ b/mercurial/templates/paper/shortlog.tmpl Fri Sep 06 13:30:57 2013 +0400
> @@ -71,6 +71,18 @@
> | rev {rev}: {changenav%navshort}
> </div>
>
> +<script type="text/javascript">
> + ajaxScrollInit(
> + '{url|urlescape}shortlog/%hash%',
> + '{nextentry%"{node}"}', <!-- NEXTHASH
I'm missing something here... This HTML comment looks unclosed to me?
Would '//' not be more appropriate for a comment inside JavaScript?
--
Martin Geisler
More information about the Mercurial-devel
mailing list