From: Sven Schöling Date: Tue, 17 Mar 2015 10:22:04 +0000 (+0100) Subject: Layout: Javascript includes richtig escapen. X-Git-Tag: release-3.2.1~28 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=38e2876fa8ab04fe1ee78aeaa415aa6e71c0f524;p=kivitendo-erp.git Layout: Javascript includes richtig escapen. --- diff --git a/templates/webpages/layout/javascript_setup.js b/templates/webpages/layout/javascript_setup.js index 7346ca3ee..2746ed737 100644 --- a/templates/webpages/layout/javascript_setup.js +++ b/templates/webpages/layout/javascript_setup.js @@ -1,8 +1,9 @@ [%- USE T8 %] +[%- USE JSON %] $(function() { [% IF datefmt %] - setupPoints('[% MYCONFIG.numberformat %]', '[% 'wrongformat' | $T8 %]'); - setupDateFormat('[% MYCONFIG.dateformat %]', '[% 'Falsches Datumsformat!' | $T8 %]'); + setupPoints([% JSON.json(MYCONFIG.numberformat) %], '[% 'wrongformat' | $T8 %]'); + setupDateFormat([% JSON.json(MYCONFIG.dateformat) %], '[% 'Falsches Datumsformat!' | $T8 %]'); $.datepicker.setDefaults( $.extend({}, $.datepicker.regional["[% MYCONFIG.countrycode %]"], {