Avoid toggling when clicking the title

This commit is contained in:
Tim Schaub
2019-10-23 10:26:21 -06:00
parent ebae0386bd
commit 10379920d2
2 changed files with 4 additions and 4 deletions

View File

@@ -67,8 +67,8 @@ $(function () {
});
// Toggle when click an item element
$('.navigation').on('click', '.title', function (e) {
$(this).parent().find('.itemMembers').toggle();
$('.navigation').on('click', '.toggle', function (e) {
$(this).parent().parent().find('.itemMembers').toggle();
});
// Show an item related a current documentation automatically

View File

@@ -15,9 +15,9 @@ function toShortName(name) {
<li class="item" data-name="<?js= item.longname ?>" data-shortname="<?js= item.name.toLowerCase() ?>">
<span class="title">
<?js if (item.type === 'module') { ?>
<span class="glyphicon glyphicon-plus"></span>
<span class="glyphicon glyphicon-plus toggle"></span>
<?js } else if (item.type === 'class') { ?>
<span class="glyphicon glyphicon-chevron-right"></span>
<span class="glyphicon glyphicon-chevron-right toggle"></span>
<?js } ?>
<?js= self.linkto(item.longname, item.prettyname) ?>
<?js if (item.type === 'namespace' &&