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(
"SchedulerController", [
"$scope", "$http", "$rootScope", "$filter", "$routeParams", "ScheduledOperations",
function($scope, $http, $rootScope, $filter, $routeParams, ScheduledOperations) {
"$scope", "$rootScope", "$routeParams", "ScheduledOperations",
function($scope, $rootScope, $routeParams, ScheduledOperations) {
// Operations store and selection
$scope.operations = [];
$scope.selectedOperation = null;
@ -61,7 +61,7 @@ accountantApp
};
$scope.isDisplaying = function(operation) {
return operation.id && (!operation.state || operation.state === 'display');
return !operation.state;
};
$scope.createOperation = function(operation) {