From e058b19f530bd7f8b420b068b46f917e0d9ef845 Mon Sep 17 00:00:00 2001 From: Andrew Manning Date: Sat, 11 Feb 2017 14:40:04 -0500 Subject: Scroll to doco links with anchor references when there is a ?zid parameter. --- doc/toc.html | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'doc') diff --git a/doc/toc.html b/doc/toc.html index 4c52c5e74..851f356e6 100644 --- a/doc/toc.html +++ b/doc/toc.html @@ -74,7 +74,7 @@ $(".panel-collapse.in").find('a').each(function(){ var url = document.createElement('a'); url.href = window.location; - var pageName = url.href.split('/').pop().split('#').shift(); + var pageName = url.href.split('/').pop().split('#').shift().split('?').shift(); var linkName = $(this).attr('href').split('/').pop(); if(pageName === linkName) { var tocUl = $(this).closest('li').append('