diff --git a/js/main.js b/js/main.js index 2dc729c..6839667 100644 --- a/js/main.js +++ b/js/main.js @@ -84,6 +84,12 @@ function initSearchBar(jsonData) { // Remove the autocomplete boxes document.getElementById("search-bar-input-autocomplete-list").style.display = "none"; return + } else if (query == "--settings") { + showSettings() + document.getElementById(searchBarId).value = "" + // Remove the autocomplete boxes + document.getElementById("search-bar-input-autocomplete-list").style.display = "none"; + return } // If not others, then it's probably a search @@ -389,4 +395,4 @@ function extractQuickLinks(passedSqrs) { // Start the autocomplete autocomplete(document.getElementById("search-bar-input"), this.validQuickLinks); -} \ No newline at end of file +}