Comment.
This commit is contained in:
parent
12fda9d41c
commit
729a061d02
@ -109,6 +109,7 @@ angular.module('accountant.accounts', [
|
|||||||
*/
|
*/
|
||||||
$scope.cancelEdit = function(rowform, account, $index) {
|
$scope.cancelEdit = function(rowform, account, $index) {
|
||||||
if(!account.id) {
|
if(!account.id) {
|
||||||
|
// Account not saved, just remove it from array.
|
||||||
$scope.accounts.splice($index, 1);
|
$scope.accounts.splice($index, 1);
|
||||||
} else {
|
} else {
|
||||||
rowform.$cancel();
|
rowform.$cancel();
|
||||||
|
Loading…
Reference in New Issue
Block a user