The grant checkboxes are now initialing correctly

This commit is contained in:
John Shaver 2017-11-07 14:37:50 -07:00
vecāks 40bfe2e534
revīzija ad454ba7b6
1 mainīti faili ar 7 papildinājumiem un 2 dzēšanām

Parādīt failu

@ -164,8 +164,13 @@ $(function () {
$scope.find('.js-scope-desc').text(grantDescriptions[scope]); $scope.find('.js-scope-desc').text(grantDescriptions[scope]);
} }
else { else {
$scope.find('.js-scope-toggle').prop('checked', false); //This disables the check/checkbox when we have an unrecognized grant.
$scope.find('.js-scope-toggle').prop('disabled', true); //This is disabled for testing until we can discover grants automatically.
//TODO: Enable this when grants are discoverable
//TODO: Indicate to user that this is disabled, not just unchecked.
//$scope.find('.js-scope-toggle').prop('checked', false);
//$scope.find('.check').attr("src", "./img/unpressed-check.png");
//$scope.find('.js-scope-toggle').prop('disabled', true);
$scope.find('.js-scope-desc').text(scope); $scope.find('.js-scope-desc').text(scope);
} }