From 5211088f2b53883c7ebec2814afd201ea2b09d70 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Wed, 5 Nov 2014 09:20:01 +0100 Subject: [PATCH] =?utf8?q?Pflichtenhefte:=20ben=C3=B6tigte=20Template-Plug?= =?utf8?q?ins=20auch=20laden?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../requirement_spec_text_block/_predefined_text_inserter.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/webpages/requirement_spec_text_block/_predefined_text_inserter.js b/templates/webpages/requirement_spec_text_block/_predefined_text_inserter.js index a80084207..cc1e39886 100644 --- a/templates/webpages/requirement_spec_text_block/_predefined_text_inserter.js +++ b/templates/webpages/requirement_spec_text_block/_predefined_text_inserter.js @@ -1,8 +1,8 @@ -[% USE JavaScript %] +[% USE LxERP %][% USE JavaScript %] function insert_selected_predefined_text() { var data = { [%- FOREACH pt = SELF.predefined_texts %] - [% HTML.escape(pt.id) %]: { + [% JavaScript.escape(pt.id) %]: { title: "[% JavaScript.escape(pt.title) %]", text: "[% JavaScript.escape(pt.text) %]" }[% UNLESS loop.last %],[% END %] -- 2.20.1