From f23f80d6df7a7c58df3f6f9f0aeb89333d2eeaa3 Mon Sep 17 00:00:00 2001
From: Robert Goldmann <deadlocker@gmx.de>
Date: Sat, 2 Mar 2019 16:29:33 +0100
Subject: [PATCH] Fixed #404 - new transaction: allow multiline for description

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

diff --git a/src/main/resources/static/js/transactions.js b/src/main/resources/static/js/transactions.js
index 44cd19333..6a4803f43 100644
--- a/src/main/resources/static/js/transactions.js
+++ b/src/main/resources/static/js/transactions.js
@@ -142,8 +142,9 @@ $( document ).ready(function() {
 
     // prevent form submit on enter (otherwise tag functionality will be hard to use)
     $(document).on("keypress", 'form', function (e) {
+
         var code = e.keyCode || e.which;
-        if (code === 13) {
+        if((code === 13) &&  e.target.nodeName!=='TEXTAREA') {
             e.preventDefault();
             return false;
         }
-- 
GitLab