Skip to content

Commit

Permalink
Merge pull request #98 from dynamsoft-docs/preview
Browse files Browse the repository at this point in the history
update to internal commit 4f6b75ff
  • Loading branch information
Jenny-Jiani authored Jul 8, 2024
2 parents e86b333 + 13b0055 commit a40dc43
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions assets/js/index-banner.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,15 @@ function FullTreeMenuList(generateDocHead, needh3 = true, pageStartVer = undefin
{
allHerf1[i].onclick = function(){
if (!$(this).hasClass("refreshLink") && $(this).parents(".sideBar").length > 0 && $("#articleContent").length > 0) {
addParam(this, verArray[0], 'sidebar', needh3);
addParam(this, verArray[0], 'sidebar', needh3);
} else if (!$(this).hasClass("refreshLink") && $(this).parents(".markdown-body").length > 0 && $("#articleContent").length > 0) {
addParam(this, verArray[0], 'docContainer', needh3);
} else if (!$(this).hasClass("refreshLink") && $(this).parents("#AutoGenerateSidebar").length > 0) {
addParam(this, verArray[0], 'rightMenuContainer', needh3);
} else if (!$(this).hasClass("refreshLink") && !$(this).hasClass("noVersionAdd")) {
addParam(this, verArray[0]);
addParam(this, verArray[0]);
} else {
return true
}
return false;
};
Expand Down Expand Up @@ -244,6 +246,8 @@ function FullTreeMenuList(generateDocHead, needh3 = true, pageStartVer = undefin
addParam(this, verArray[0], 'rightMenuContainer', needh3);
} else if (!$(this).hasClass("refreshLink") && !$(this).hasClass("noVersionAdd")) {
addParam(this, verArray[0]);
} else {
return true
}
return false;
};
Expand Down
Loading

0 comments on commit a40dc43

Please sign in to comment.