Add --settings as a valid query
--setting is kinda weird so I made --settings a valid query.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user