Skip to content

Commit

Permalink
Merge pull request #37 from ConvivioTeam/close-search-results-on-head…
Browse files Browse the repository at this point in the history
…ing-navigation

Close search results on heading navigation.
  • Loading branch information
jonathanglassman authored Jul 31, 2018
2 parents 7b5fdc9 + a4e28ed commit 253d780
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/assets/javascripts/_modules/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@
$searchInput.focus();
hideResults();
});

// When selecting navigation link, close the search results.
$('.toc').on('click','a', function(e) {
hideResults();
})
}

function changeSearchLabel() {
Expand Down

0 comments on commit 253d780

Please sign in to comment.