From 10379920d2942f3d251f3a7330c8574ad32e3039 Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Wed, 23 Oct 2019 10:26:21 -0600 Subject: [PATCH] Avoid toggling when clicking the title --- config/jsdoc/api/template/static/scripts/main.js | 4 ++-- config/jsdoc/api/template/tmpl/navigation.tmpl | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/config/jsdoc/api/template/static/scripts/main.js b/config/jsdoc/api/template/static/scripts/main.js index dbc21b54ce..64a36cd6e4 100644 --- a/config/jsdoc/api/template/static/scripts/main.js +++ b/config/jsdoc/api/template/static/scripts/main.js @@ -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 diff --git a/config/jsdoc/api/template/tmpl/navigation.tmpl b/config/jsdoc/api/template/tmpl/navigation.tmpl index bb1aac7d8b..efec83c155 100644 --- a/config/jsdoc/api/template/tmpl/navigation.tmpl +++ b/config/jsdoc/api/template/tmpl/navigation.tmpl @@ -15,9 +15,9 @@ function toShortName(name) {
  • - + - +