Skip to content

Commit

Permalink
Fix display repo links with search results
Browse files Browse the repository at this point in the history
  • Loading branch information
straight-shoota committed Apr 14, 2020
1 parent 593d2f1 commit 72f798e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/compiler/crystal/tools/doc/html/js/_search.js
Original file line number Diff line number Diff line change
Expand Up @@ -353,9 +353,11 @@ CrystalDoc.displaySearchResults = function(results, query) {
CrystalDoc.toggleResultsList = function(visible) {
if (visible) {
document.querySelector(".types-list").classList.add("hidden");
document.querySelector(".repository-links").classList.add("hidden");
document.querySelector(".search-results").classList.remove("hidden");
} else {
document.querySelector(".types-list").classList.remove("hidden");
document.querySelector(".repository-links").classList.remove("hidden");
document.querySelector(".search-results").classList.add("hidden");
}
};
Expand Down

0 comments on commit 72f798e

Please sign in to comment.