all files / js/form/ addCommentModal.controller.js

25% Statements 2/8
100% Branches 0/0
0% Functions 0/3
25% Lines 2/8
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20                                   
/**
 * Created by cklimkowsky on 2/24/15.
 */
angular
    .module('coopEval')
    .controller('AddCommentModalController', AddCommentModalController);
 
function AddCommentModalController($scope, $modalInstance, question) {
 
    $scope.question = question;
 
    $scope.save = function () {
        $modalInstance.close($scope.question);
    };
 
    $scope.delete = function () {
        $scope.question.comment = null;
        $modalInstance.close($scope.question);
    };
}