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:
@ -52,7 +52,7 @@ var EmployeeAttendanceSubController = ['$scope', function ($scope) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
$scope.isDirty = function () {
|
$scope.isDirty = function () {
|
||||||
return !angular.equals($scope.original, $scope.item)
|
return !angular.equals($scope.original, $scope.item);
|
||||||
};
|
};
|
||||||
}];
|
}];
|
||||||
EmployeeAttendanceController.resolve = {
|
EmployeeAttendanceController.resolve = {
|
||||||
|
|||||||
@ -113,6 +113,9 @@ var overlord = angular.module('overlord', ['overlord.directive', 'overlord.filte
|
|||||||
.config(['$httpProvider', function ($httpProvider) {
|
.config(['$httpProvider', function ($httpProvider) {
|
||||||
$httpProvider.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
|
$httpProvider.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
|
||||||
}])
|
}])
|
||||||
|
.config(['$controllerProvider', function ($controllerProvider) {
|
||||||
|
$controllerProvider.allowGlobals();
|
||||||
|
}])
|
||||||
.config(['$httpProvider', function ($httpProvider) {
|
.config(['$httpProvider', function ($httpProvider) {
|
||||||
$httpProvider.interceptors.push('responseInterceptor');
|
$httpProvider.interceptors.push('responseInterceptor');
|
||||||
}])
|
}])
|
||||||
|
|||||||
Reference in New Issue
Block a user