From 00bef1098b9c751a810d862403993836568580d4 Mon Sep 17 00:00:00 2001 From: Daniel Spitzer Date: Tue, 18 Mar 2025 15:01:15 +0100 Subject: [PATCH] Kalender Bugfix * Ticketnummer und Beschreibung werden nun richtig ins Beschreibungsfeld geschrieben. --- public/js/pages/Calendar/View.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/public/js/pages/Calendar/View.js b/public/js/pages/Calendar/View.js index bcb318675..5cb75f60f 100644 --- a/public/js/pages/Calendar/View.js +++ b/public/js/pages/Calendar/View.js @@ -1939,8 +1939,8 @@ $(document).ready(function () { if ($("#customer").select2('data')[0].spin) {// ID deines Editors var currentContent = tinymce.activeEditor.getContent(); tinymce.activeEditor.setContent(currentContent + '

Service Pin: ' + $("#customer").select2('data')[0].spin + '

'); - - $('#description').val('Service Pin: ' + $("#customer").select2('data')[0].spin + '\n'); + // + // $('#description').val('Service Pin: ' + $("#customer").select2('data')[0].spin + '\n'); } @@ -1953,7 +1953,9 @@ $(document).ready(function () { if ($('#location').val() == "") { $('#location').val($("#ticket").select2('data')[0].location); } - $('#description').val('Ticket Nr.: ' + $("#ticket").select2('data')[0].id + '\n' + $("#ticket").select2('data')[0].subject); + var currentContent = tinymce.activeEditor.getContent(); + tinymce.activeEditor.setContent(currentContent + '

Ticket Nr.: ' + $("#ticket").select2('data')[0].id + '

\n' + $("#ticket").select2('data')[0].subject); + // $('#description').val('Ticket Nr.: ' + $("#ticket").select2('data')[0].id + '\n' + $("#ticket").select2('data')[0].subject); });