From 6281e9357b9a7672f3d77f35d658f1e29b9f408c Mon Sep 17 00:00:00 2001 From: Alexis Lahouze Date: Thu, 7 Feb 2013 16:46:55 +0100 Subject: [PATCH] Fixed row color on sold under 0 but above account authorized overdraft. --- src/html/js/entries.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/html/js/entries.js b/src/html/js/entries.js index 4dac309..9d4386b 100644 --- a/src/html/js/entries.js +++ b/src/html/js/entries.js @@ -128,7 +128,7 @@ var EntryController = function($scope, $http, $rootScope, $filter) { $scope.entryRowClass = function(sold) { if(sold < $scope.account.authorized_overdraft) { return 'error'; - } else if (entry.sold < 0) { + } else if (esold < 0) { return 'warning'; } };