From 6a2d796cdb489bb1f71af4694eade41ba5d3a572 Mon Sep 17 00:00:00 2001 From: Alexis Lahouze Date: Wed, 15 Jul 2015 17:01:16 +0200 Subject: [PATCH] Code cleanup. --- accountant/frontend/static/js/scheduler.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/accountant/frontend/static/js/scheduler.js b/accountant/frontend/static/js/scheduler.js index 3101639..1d935fa 100644 --- a/accountant/frontend/static/js/scheduler.js +++ b/accountant/frontend/static/js/scheduler.js @@ -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) {