Code cleanup.

This commit is contained in:
Alexis Lahouze 2015-07-15 17:01:16 +02:00
parent 6821d8d0c6
commit 6a2d796cdb

View File

@ -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) {