fix navtree hack

in recent doxygen version hash is always '#' making our check failing
The fix is to fallback to default used later one
This commit is contained in:
Sébastien Loriot 2019-02-11 16:35:03 +01:00
parent 9b3a04103e
commit d6cb114940
2 changed files with 8 additions and 0 deletions

View File

@ -46,6 +46,10 @@ $(document).ready(function() {
// override gotoNode from navtree.js
gotoNode = function (o,subIndex,root,hash,relpath) {
var nti = navTreeSubIndices[subIndex][root+hash];
if (!nti)
{
nti = navTreeSubIndices[subIndex][root];
}
if(nti && (nti[0] === 1 && nti[0])) {
nti.splice(1, 1);
}

View File

@ -46,6 +46,10 @@ $(document).ready(function() {
// override gotoNode from navtree.js
gotoNode = function (o,subIndex,root,hash,relpath) {
var nti = navTreeSubIndices[subIndex][root+hash];
if (!nti)
{
nti = navTreeSubIndices[subIndex][root];
}
if(nti && (nti[0] === 1 && nti[0])) {
nti.splice(1, 1);
}