If no search results, dialog value entered in search field

This commit is contained in:
2022-02-07 12:47:51 +01:00
parent f578bd2fe1
commit 6186b14b16
3 changed files with 7 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
// ==UserScript==
// @name 3CX TAPI
// @namespace http://cp-solutions.at
// @version 9.0.0
// @version 9.0.1
// @author Daniel Triendl <d.triendl@cp-solutions.at>
// @copyright Copyright 2021 CP Solutions GmbH
// @source https://source.cp-austria.at/git/CPATRD/3cx_tapi.git
@@ -8223,6 +8223,9 @@ class Search {
if (items.length > 0) {
this.dial(items[0].dataset.tapiNumber);
}
else {
this.dial(document.getElementById('tapiSearchInput').value);
}
return false;
};
var searchBox = document.createElement('div');