From 729a061d02fbf47a538cdd08ef1a0e3273051589 Mon Sep 17 00:00:00 2001 From: Alexis Lahouze Date: Tue, 12 Apr 2016 10:45:04 +0200 Subject: [PATCH] Comment. --- accountant/frontend/static/js/accounts.js | 1 + 1 file changed, 1 insertion(+) diff --git a/accountant/frontend/static/js/accounts.js b/accountant/frontend/static/js/accounts.js index 583cf61..decfab8 100644 --- a/accountant/frontend/static/js/accounts.js +++ b/accountant/frontend/static/js/accounts.js @@ -109,6 +109,7 @@ angular.module('accountant.accounts', [ */ $scope.cancelEdit = function(rowform, account, $index) { if(!account.id) { + // Account not saved, just remove it from array. $scope.accounts.splice($index, 1); } else { rowform.$cancel();