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
|
// Remove the autocomplete boxes
|
||||||
document.getElementById("search-bar-input-autocomplete-list").style.display = "none";
|
document.getElementById("search-bar-input-autocomplete-list").style.display = "none";
|
||||||
return
|
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
|
// If not others, then it's probably a search
|
||||||
@@ -389,4 +395,4 @@ function extractQuickLinks(passedSqrs) {
|
|||||||
|
|
||||||
// Start the autocomplete
|
// Start the autocomplete
|
||||||
autocomplete(document.getElementById("search-bar-input"), this.validQuickLinks);
|
autocomplete(document.getElementById("search-bar-input"), this.validQuickLinks);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user