Style, comment.

This commit is contained in:
Alexis Lahouze 2016-03-27 23:07:22 +02:00
parent 0d65f5318a
commit 8f28d14201

View File

@ -70,7 +70,7 @@ angular.module('accountant.accounts', [
return; return;
} }
if(account.current <account.authorized_overdraft) { if(account.current < account.authorized_overdraft) {
return 'danger'; return 'danger';
} else if(account.current < 0) { } else if(account.current < 0) {
return 'warning'; return 'warning';
@ -100,6 +100,7 @@ angular.module('accountant.accounts', [
authorized_overdraft: 0 authorized_overdraft: 0
}); });
// Insert account at the begining of the array.
$scope.accounts.splice(0, 0, account); $scope.accounts.splice(0, 0, account);
}; };