Javascript escaping: Nochmal mit JavaScript Plugin
[kivitendo-erp.git] / templates / webpages / layout / javascript_setup.js
index 2746ed7..178bcb5 100644 (file)
@@ -1,9 +1,9 @@
 [%- USE T8 %]
-[%- USE JSON %]
+[%- USE JavaScript %]
 $(function() {
 [% IF datefmt %]
-  setupPoints([% JSON.json(MYCONFIG.numberformat) %], '[% 'wrongformat' | $T8 %]');
-  setupDateFormat([% JSON.json(MYCONFIG.dateformat) %], '[% 'Falsches Datumsformat!' | $T8 %]');
+  setupPoints('[% JavaScript.escape(MYCONFIG.numberformat) %]', '[% 'wrongformat' | $T8 %]');
+  setupDateFormat('[% JavaScript.escape(MYCONFIG.dateformat) %]', '[% 'Falsches Datumsformat!' | $T8 %]');
 
   $.datepicker.setDefaults(
     $.extend({}, $.datepicker.regional["[% MYCONFIG.countrycode %]"], {