mirror of
https://github.com/jiojciojsioe3/a3cjroijsiojiorj.git
synced 2024-11-15 07:21:50 +08:00
set last query first
This commit is contained in:
parent
b63cd56b93
commit
4f71a32bcf
@ -2992,6 +2992,7 @@ class SongSelect{
|
|||||||
|
|
||||||
searchInput(e){
|
searchInput(e){
|
||||||
var text = e.target.value.toLowerCase()
|
var text = e.target.value.toLowerCase()
|
||||||
|
localStorage.setItem("lastSearchQuery", text)
|
||||||
|
|
||||||
if(text.length === 0){
|
if(text.length === 0){
|
||||||
this.setSearchTip()
|
this.setSearchTip()
|
||||||
@ -2999,7 +3000,6 @@ class SongSelect{
|
|||||||
}
|
}
|
||||||
|
|
||||||
var new_results = this.performSearch(text)
|
var new_results = this.performSearch(text)
|
||||||
localStorage.setItem("lastSearchQuery", text)
|
|
||||||
|
|
||||||
if (new_results.length === 0) {
|
if (new_results.length === 0) {
|
||||||
this.setSearchTip(strings.search.noResults, true)
|
this.setSearchTip(strings.search.noResults, true)
|
||||||
|
Loading…
Reference in New Issue
Block a user