Fix: SubControllers not working due to breaking changes in AngularJS 1.3 where global functions as controllers are no longer allowed. Overrode the setting with allowGlobals() config.
This commit is contained in:
parent
7c54e4b0c7
commit
e27424c41e
@ -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 = {
|
||||
|
@ -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');
|
||||
}])
|
||||
|
Loading…
Reference in New Issue
Block a user