1
0
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:
Hillel Coren 2017-04-23 11:15:38 +03:00
parent dc31d49452
commit ed2070bd5d

View File

@ -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();