Code cleanup.
This commit is contained in:
parent
6821d8d0c6
commit
6a2d796cdb
@ -26,8 +26,8 @@ accountantApp
|
|||||||
|
|
||||||
.controller(
|
.controller(
|
||||||
"SchedulerController", [
|
"SchedulerController", [
|
||||||
"$scope", "$http", "$rootScope", "$filter", "$routeParams", "ScheduledOperations",
|
"$scope", "$rootScope", "$routeParams", "ScheduledOperations",
|
||||||
function($scope, $http, $rootScope, $filter, $routeParams, ScheduledOperations) {
|
function($scope, $rootScope, $routeParams, ScheduledOperations) {
|
||||||
// Operations store and selection
|
// Operations store and selection
|
||||||
$scope.operations = [];
|
$scope.operations = [];
|
||||||
$scope.selectedOperation = null;
|
$scope.selectedOperation = null;
|
||||||
@ -61,7 +61,7 @@ accountantApp
|
|||||||
};
|
};
|
||||||
|
|
||||||
$scope.isDisplaying = function(operation) {
|
$scope.isDisplaying = function(operation) {
|
||||||
return operation.id && (!operation.state || operation.state === 'display');
|
return !operation.state;
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.createOperation = function(operation) {
|
$scope.createOperation = function(operation) {
|
||||||
|
Loading…
Reference in New Issue
Block a user