diff --git a/src/main/content/antora_ui/src/js/01-nav.js b/src/main/content/antora_ui/src/js/01-nav.js index 8458bbb65a..c9064b45c0 100644 --- a/src/main/content/antora_ui/src/js/01-nav.js +++ b/src/main/content/antora_ui/src/js/01-nav.js @@ -71,6 +71,12 @@ var navigation = (function(){ if (e.detail > 1) e.preventDefault(); }); + $('#filter_titles').on('keyup', filterNavTitles); + + $('#clear_filter').on("click", function () { + $('#filter_titles').val(''); + filterNavTitles(); + }) }; $('.components .versions li a').on('click', function(e){ diff --git a/src/main/content/antora_ui/src/partials/nav-menu-filter.hbs b/src/main/content/antora_ui/src/partials/nav-menu-filter.hbs new file mode 100644 index 0000000000..39e15a5ab1 --- /dev/null +++ b/src/main/content/antora_ui/src/partials/nav-menu-filter.hbs @@ -0,0 +1,9 @@ +
\ No newline at end of file diff --git a/src/main/content/antora_ui/src/partials/nav-menu.hbs b/src/main/content/antora_ui/src/partials/nav-menu.hbs index a38d979337..62896ac82a 100644 --- a/src/main/content/antora_ui/src/partials/nav-menu.hbs +++ b/src/main/content/antora_ui/src/partials/nav-menu.hbs @@ -1,6 +1,9 @@