From 464cfded2fb57b4852c245bca2124e869eaec095 Mon Sep 17 00:00:00 2001
From: Robert Goldmann <deadlocker@gmx.de>
Date: Wed, 21 Nov 2018 11:41:00 +0100
Subject: [PATCH] Fixed #361 - category select is ignoring appropriate text
 color

---
 src/main/resources/static/js/transactions.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/resources/static/js/transactions.js b/src/main/resources/static/js/transactions.js
index 75994b443..17bcca249 100644
--- a/src/main/resources/static/js/transactions.js
+++ b/src/main/resources/static/js/transactions.js
@@ -328,8 +328,8 @@ function beautifyCategorySelect() {
         $(this).text(categoryName);
         $(this).data("infos", categoryInfos);
         $(this).addClass("category-select");
-        $(this).parent().prepend('<div class="category-circle-small category-select" id="category-' + counter + '" style="background-color: ' + categoryColor + '"><span style="color: ' + appropriateTextColor + '"></span></div>');
-        $('#categoryWrapper').parent().append('<style>#category-' + counter + ':after{content: "' + firstLetter + '";}</style>');
+        $(this).parent().prepend('<div class="category-circle-small category-select" id="category-' + counter + '" style="background-color: ' + categoryColor + '"><span></span></div>');
+        $('#categoryWrapper').parent().append('<style>#category-' + counter + ':after{content: "' + firstLetter + '"; color: ' + appropriateTextColor + ';}</style>');
 
         counter++;
     });
-- 
GitLab