diff --git a/accountant/frontend/static/js/accounts.js b/accountant/frontend/static/js/accounts.js index cb38a8e..613a889 100644 --- a/accountant/frontend/static/js/accounts.js +++ b/accountant/frontend/static/js/accounts.js @@ -33,7 +33,7 @@ accountantApp function($scope, $rootScope, $routeParams, Accounts) { $scope.valueClass = function(account, value) { - if(!account) { + if(!account || !value) { return; } @@ -78,7 +78,7 @@ accountantApp * Start account edition. */ $scope.editAccount = function(account) { - account.edit = true; + account.editing = true; }; /* diff --git a/accountant/frontend/static/templates/accounts.html b/accountant/frontend/static/templates/accounts.html index 83efe71..24901e0 100644 --- a/accountant/frontend/static/templates/accounts.html +++ b/accountant/frontend/static/templates/accounts.html @@ -60,10 +60,10 @@ -