From ed05c47d9929845a1ecb5b2ceea5b9dc6f15f341 Mon Sep 17 00:00:00 2001 From: Reese Date: Wed, 9 Sep 2020 07:27:12 -0500 Subject: [PATCH] Add --settings as a valid query --setting is kinda weird so I made --settings a valid query. --- js/main.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 +}