diff --git a/src/main/resources/static/js/controllers.js b/src/main/resources/static/js/controllers.js index 10e177a..e54902f 100644 --- a/src/main/resources/static/js/controllers.js +++ b/src/main/resources/static/js/controllers.js @@ -58,18 +58,13 @@ transactionControllers.controller('TransactionListCtrl', [ '$scope', '$location' } - $scope.refreshAccount = function() { - console.log('BINGO!'); - $scope.refreshList(); - }; - $scope.postTransaction = function() { // via Resource (might be moved into a service) var Transaction = $resource('/transactions'); var newTransaction = new Transaction({ - "account" : $scope.account, + "account" : $scope.account._links.self.href, "amount" : $scope.transaction.amount, "date" : $scope.transaction.date, "description" : $scope.transaction.description, diff --git a/src/main/resources/static/partials/transaction-list.html b/src/main/resources/static/partials/transaction-list.html index 870254a..02e7f78 100644 --- a/src/main/resources/static/partials/transaction-list.html +++ b/src/main/resources/static/partials/transaction-list.html @@ -1,10 +1,10 @@
-
+
- Betrag: + Betrag:
Kategorie: