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