diff Makefile @ 35216:fcc96cf0983d

hgweb: adopt child nodes in ajaxScrollInit on /graph pages too ajaxScrollInit is a function that loads more elements (e.g. changelog entries) when browser window is scrolled down to the bottom of the page. It basically fetches the next page from the server as HTML, finds container element in that document and "adopts" (essentially, moves) all its child nodes to the container in the current document. Currently, hgweb doesn't render any changesets on /graph page (everything is done in JavaScript), so there are no children to adopt. But there will be soon, so let's create a reusable function that does it. Hardcoding #graphnodes selector is suboptimal, but graph code already does this in two other places.
author Anton Shestakov <av6@dwimlabs.net>
date Fri, 01 Dec 2017 14:17:20 +0800
parents c2695cbb5fb1
children 39499bc31fcd
line wrap: on
line diff