From a54953ff0d69e628fce31a79b44e801b79e8b4fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Phillip=20K=C3=BChne?= Date: Fri, 30 Jun 2023 15:28:46 +0200 Subject: [PATCH] fix copy functionality Fixed copy functionality by no longer rendering the data into the function call as string literal, but instead accessing it from the DOM in the function call. --- backend/templates/main_admin.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/backend/templates/main_admin.html b/backend/templates/main_admin.html index ac98b48..4649063 100644 --- a/backend/templates/main_admin.html +++ b/backend/templates/main_admin.html @@ -187,15 +187,16 @@ function TableActions(value, row, index) { let outerHTML = "" if (row.Transferred == 1) { - outerHTML = "  "; + outerHTML = "  "; } else { - outerHTML = "  "; + outerHTML = "  "; } return outerHTML; } function CopyFormatter(value, row, index) { - return ""+value+""; + let escapedString = value.replace("\"","\\\"").replace("\'", "\\\'") + return ""+value+""; } function getIdSelections() {