all files / js/administration/ addDepartmentModal.controller.js

28.57% Statements 2/7
100% Branches 0/0
0% Functions 0/3
28.57% Lines 2/7
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23                                         
/**
 * Created by cklimkowsky on 3/1/15.
 */
angular
    .module('coopEval')
    .controller('AddDepartmentModalController', AddDepartmentModalController);
 
function AddDepartmentModalController($scope, $modalInstance, college) {
 
    $scope.department = {
        departmentCode: null,
        departmentName: null,
        collegeByCollegeId: college
    };
 
    $scope.save = function () {
        $modalInstance.close($scope.department);
    };
 
    $scope.cancel = function () {
        $modalInstance.dismiss();
    };
}