mirror of
https://github.com/Brandon-Rozek/website-theme.git
synced 2025-05-24 12:35:10 +00:00
merge branch into master
This commit is contained in:
commit
e628e67fd1
1 changed files with 4 additions and 0 deletions
|
@ -96,6 +96,7 @@ const initUI = () => {
|
||||||
$('#searchBoxIcon').click(() => {
|
$('#searchBoxIcon').click(() => {
|
||||||
$('#searchBoxInput').val('')
|
$('#searchBoxInput').val('')
|
||||||
$('#searchBoxInput').trigger('keyup')
|
$('#searchBoxInput').trigger('keyup')
|
||||||
|
$('#searchBoxInput').focus()
|
||||||
})
|
})
|
||||||
|
|
||||||
// Event when chenging query
|
// Event when chenging query
|
||||||
|
@ -126,6 +127,9 @@ const initUI = () => {
|
||||||
|
|
||||||
// Emit keyup event for when the query is already setted with browser back etc.
|
// Emit keyup event for when the query is already setted with browser back etc.
|
||||||
$('#searchBoxInput').trigger('keyup')
|
$('#searchBoxInput').trigger('keyup')
|
||||||
|
|
||||||
|
// Focus at searchBox
|
||||||
|
$('#searchBoxInput').focus()
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue