Created
October 30, 2014 20:05
-
-
Save amdprophet/741b71f5a4cee9f0fc7f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var selectedEvents = {}; | |
$scope.isSelected = ƒ(event) { | |
return selectedEvents[event.client.name + '_' + event.check.name]; | |
} | |
$scope.selectEvent = ƒ($event, event) { | |
if (selectedEvents[event.client.name + '_' + event.check.name]) { | |
selectedEvents[event.client.name + '_' + event.check.name] = false; | |
} else { | |
selectedEvents[event.client.name + '_' + event.check.name] = true; | |
} | |
$event.stopPropagation(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment