Search result submit selected first
This commit is contained in:
1 parent
f3693162ab
commit
231d24b26a
1 file changed
+4
-1
+4
-1
@@ -13,7 +13,10 @@ export class Search {
|
||||
form.style.float = 'right'
|
||||
form.style.marginRight = '20px'
|
||||
form.onsubmit = () => {
|
||||
var items = document.getElementsByClassName('tapi-search-result')
|
||||
var items = document.getElementsByClassName('tapi-search-result-selected')
|
||||
if (items.length === 0) {
|
||||
items = document.getElementsByClassName('tapi-search-result')
|
||||
}
|
||||
if (items.length > 0) {
|
||||
this.dial((<HTMLElement>items[0]).dataset.tapiNumber)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user