Browse Source
Merge pull request #8007 from abpframework/issue/7567
Docs module: Fix navigation bar toggles when filtered
pull/8022/head
Alper Ebicoglu
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
5 additions and
0 deletions
-
modules/docs/src/Volo.Docs.Web/Pages/Documents/Shared/Scripts/vs.js
|
|
@ -8,6 +8,11 @@ |
|
|
$('li:not(.last-link) span.plus-icon i.fa-chevron-right').click( |
|
|
$('li:not(.last-link) span.plus-icon i.fa-chevron-right').click( |
|
|
function () { |
|
|
function () { |
|
|
var $element = $(this).parent(); |
|
|
var $element = $(this).parent(); |
|
|
|
|
|
var $filter = $('.docs-version #filter'); |
|
|
|
|
|
|
|
|
|
|
|
if ($filter && $filter.val() != ''){ |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
$element.parent().children('ul.tree').toggle(100); |
|
|
$element.parent().children('ul.tree').toggle(100); |
|
|
$element.closest('li').toggleClass('selected-tree'); |
|
|
$element.closest('li').toggleClass('selected-tree'); |
|
|
|