diff --git a/brewman/static/scripts/employee-attendance.js b/brewman/static/scripts/employee-attendance.js index 72d0db55..bcafee03 100644 --- a/brewman/static/scripts/employee-attendance.js +++ b/brewman/static/scripts/employee-attendance.js @@ -52,7 +52,7 @@ var EmployeeAttendanceSubController = ['$scope', function ($scope) { }; $scope.isDirty = function () { - return !angular.equals($scope.original, $scope.item) + return !angular.equals($scope.original, $scope.item); }; }]; EmployeeAttendanceController.resolve = { diff --git a/brewman/static/scripts/overlord.js b/brewman/static/scripts/overlord.js index 189451f8..853f4a02 100644 --- a/brewman/static/scripts/overlord.js +++ b/brewman/static/scripts/overlord.js @@ -113,6 +113,9 @@ var overlord = angular.module('overlord', ['overlord.directive', 'overlord.filte .config(['$httpProvider', function ($httpProvider) { $httpProvider.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest'; }]) + .config(['$controllerProvider', function ($controllerProvider) { + $controllerProvider.allowGlobals(); + }]) .config(['$httpProvider', function ($httpProvider) { $httpProvider.interceptors.push('responseInterceptor'); }])