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