diff options
Diffstat (limited to 'src/components/HMI/app/view/sdl/TTSPopUp.js')
-rw-r--r-- | src/components/HMI/app/view/sdl/TTSPopUp.js | 34 |
1 files changed, 4 insertions, 30 deletions
diff --git a/src/components/HMI/app/view/sdl/TTSPopUp.js b/src/components/HMI/app/view/sdl/TTSPopUp.js index be5652ff90..4fc0c7669c 100644 --- a/src/components/HMI/app/view/sdl/TTSPopUp.js +++ b/src/components/HMI/app/view/sdl/TTSPopUp.js @@ -45,9 +45,7 @@ SDL.TTSPopUp = Em.ContainerView.create( { 'popUp', 'message', 'okButton', - 'timerText', - 'checkBoxLabel', - 'checkBox' + 'timerText' ], requestId: null, @@ -88,25 +86,6 @@ SDL.TTSPopUp = Em.ContainerView.create( { disabledBinding: 'parentView.buttons' }), - checkBoxLabel: SDL.Label.extend({ - - elementId: 'checkBoxLabel', - - classNames: 'checkBoxLabel', - - content: 'Send response' - }), - - checkBox: Em.Checkbox.extend( { - - elementId: 'checkBoxTTS', - - classNames: 'checkBoxTTS', - - checked: true - - }), - timerText: SDL.Label.extend({ elementId: 'timerText', @@ -116,8 +95,6 @@ SDL.TTSPopUp = Em.ContainerView.create( { contentBinding: 'parentView.timerSeconds' }), - - resetTimeout: function () { this.set('timerSeconds', 10); FFW.TTS.OnResetTimeout(this.appID, "TTS.Speak"); @@ -149,12 +126,9 @@ SDL.TTSPopUp = Em.ContainerView.create( { DeactivateTTS: function() { clearInterval(this.timer); this.set('active', false); - this.set('timerSeconds', 5); - - if (this.checkBox.checked) { - SDL.SDLController.TTSResponseHandler(); - FFW.TTS.Stopped(); - } + this.set('timerSeconds', 10); + SDL.SDLController.TTSResponseHandler(); + FFW.TTS.Stopped(); }, /** |