Working on speech rec

This commit is contained in:
Hillel Coren 2017-04-04 18:55:14 +03:00
parent 025c9abc90
commit 276200ad3c
2 changed files with 4 additions and 3 deletions

View File

@ -14,6 +14,7 @@ class NavigateToIntent extends BaseIntent
$map = [ $map = [
'report' => 'reports', 'report' => 'reports',
'settings' => ACCOUNT_COMPANY_DETAILS,
]; ];
if (isset($map[$location])) { if (isset($map[$location])) {

View File

@ -174,9 +174,9 @@
function onMicrophoneClick() { function onMicrophoneClick() {
//$('#search').val('create new invoice for edgar a po number of 1234'); //$('#search').val('create new invoice for edgar a po number of 1234');
//$('#search').val('create a task for edgar'); //$('#search').val('create a task for edgar');
$('#search').val('go to localization'); //$('#search').val('go to settings');
$('#search-form').submit(); //$('#search-form').submit();
return; //return;
$('.fa-microphone').hide(); $('.fa-microphone').hide();
$('#search').val("{{ trans('texts.listening') }}"); $('#search').val("{{ trans('texts.listening') }}");