From 2775b81ce5df285c57f4f6638753f5f4e7b3b205 Mon Sep 17 00:00:00 2001 From: Tilman Liero Date: Fri, 29 Jul 2016 00:07:41 +0200 Subject: [PATCH] bugfix: no autoselect creditor for withdrawals --- pom.xml | 2 +- src/main/resources/static/js/controllers.js | 19 ------------------- 2 files changed, 1 insertion(+), 20 deletions(-) diff --git a/pom.xml b/pom.xml index fe8de3a..00fb4f4 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 de.tilman next-transactions - 1.3.2 + 1.3.3 org.springframework.boot diff --git a/src/main/resources/static/js/controllers.js b/src/main/resources/static/js/controllers.js index 4b244e9..ba3022c 100644 --- a/src/main/resources/static/js/controllers.js +++ b/src/main/resources/static/js/controllers.js @@ -101,27 +101,8 @@ transactionControllers.controller('TransactionListCtrl', [ '$scope', '$routePara } $scope.checkCategory = function() { - var radioButtons = document.getElementsByName('expenseBy'); var userLabels = document.getElementsByClassName('userLabel'); - - // if this is selected to be a withdrawal, preselect the current user and lock the radio buttons - if ($scope.transaction.category.name === 'Private Entnahme') { - for (i = 0; i < userLabels.length; i++) { - if (userLabels[i].innerHTML.indexOf($scope.userinfo.name) >= 0) { - userLabels[i].getElementsByTagName('INPUT')[0].checked = true; - } - } - for (i = 0; i < radioButtons.length; i++) { - radioButtons[i].disabled = true; - } - } - else { - for (i = 0; i < radioButtons.length; i++) { - radioButtons[i].disabled = false; - } - radioButtons[0].checked = true; - } } $scope.initList = function() {