# HG changeset patch # User Anton Shestakov # Date 2018-04-09 14:00:11 # Node ID 685ad41feba0f7ac17eb968f0fb33947a9ec5cbd # Parent 3a91911c434322b16ff413057146c06311335d76 hgweb: insert followlines buttons before any children, including text nodes This way the buttons come before any other content, including text nodes. Because highlight extension replaces every line of text with some elements that have CSS classes for highlighting, the placement of followlines buttons used to depend on if that extension was enabled or not. Let's make the placement more consistent, it'll help the next patch in this series. diff --git a/mercurial/templates/static/followlines.js b/mercurial/templates/static/followlines.js --- a/mercurial/templates/static/followlines.js +++ b/mercurial/templates/static/followlines.js @@ -76,7 +76,7 @@ document.addEventListener('DOMContentLoa if ( childSupportElms.length > 0 ) { btnSupportElm = childSupportElms[0]; } - var refNode = btnSupportElm.children[0]; // node to insert