Refactored.

pull/509/head
Alper Ebicoglu 7 years ago
parent 33305088ee
commit 4b92893766

@ -87,7 +87,6 @@ namespace Volo.Docs.Areas.Documents.Helpers.TagHelpers
return string.Format(UlItemTemplate, output, isOpened ? "" : "display: none;");
}
//TODO:Refactor
private string GetLeafNode(NavigationNode node, string content)
{
var anchorCss = node.Path.IsNullOrEmpty() ? "tree-toggle" : "";

@ -13,7 +13,12 @@
var gotoFilteredDocumentIfThereIsOnlyOne = function () {
var $links = getShownDocumentLinks();
if ($links.length === 1) {
window.location = $links.first().attr("href");
var url = $links.first().attr("href");
if (url === "javascript:;") {
return;
}
window.location = url;
}
};
@ -59,7 +64,7 @@
gotoFilteredDocumentIfThereIsOnlyOne();
}
});
}
};
var initAnchorTags = function (container) {
anchors.options = {

Loading…
Cancel
Save