mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fix for voice commands
This commit is contained in:
parent
f1701a42ea
commit
9138c02c31
@ -126,11 +126,8 @@
|
|||||||
recognition.onend = function() {
|
recognition.onend = function() {
|
||||||
recognizing = false;
|
recognizing = false;
|
||||||
$('.fa-microphone').show();
|
$('.fa-microphone').show();
|
||||||
|
if (ignore_onend || !final_transcript) {
|
||||||
$('#search').val('');
|
$('#search').val('');
|
||||||
if (ignore_onend) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (!final_transcript) {
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$('#search-form').submit();
|
$('#search-form').submit();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user