Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions app/controller/sdl/Abstract/Controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -991,13 +991,13 @@ SDL.SDLController = Em.Object.extend(
/**
* SDL Driver Distraction ON/OFF switcher
*/
selectDriverDistraction: function() {
if (SDL.SDLModel.data.driverDistractionState) {
selectDriverDistraction: function(event) {
if (event.currentTarget.checked) {
FFW.UI.onDriverDistraction('DD_ON');
} else {
FFW.UI.onDriverDistraction('DD_OFF');
}
}.observes('SDL.SDLModel.data.driverDistractionState'),
},
/**
* Ondisplay keyboard event handler
* Sends notification on SDL Core with changed value
Expand Down
5 changes: 3 additions & 2 deletions app/view/home/controlButtons.js
Original file line number Diff line number Diff line change
Expand Up @@ -496,8 +496,9 @@ getCurrentDisplayModeClass: function() {

classNames: 'driverDistractionControlCheckBox',

checkedBinding: 'SDL.SDLModel.data.driverDistractionState'

checkedBinding: 'SDL.SDLModel.data.driverDistractionState',

change: SDL.SDLController.selectDriverDistraction,
}
)
}
Expand Down