X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/38e2876fa8ab04fe1ee78aeaa415aa6e71c0f524..6acdad62e7a4e11c8929e7ab00ce1bac511ed883:/templates/webpages/layout/javascript_setup.js diff --git a/templates/webpages/layout/javascript_setup.js b/templates/webpages/layout/javascript_setup.js index 2746ed737..c8c9e81fc 100644 --- a/templates/webpages/layout/javascript_setup.js +++ b/templates/webpages/layout/javascript_setup.js @@ -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 %]"], { @@ -16,6 +16,11 @@ $(function() { buttonImageOnly: true })); + kivi.setup_formats({ + numbers: '[% JavaScript.escape(MYCONFIG.numberformat) %]', + dates: '[% JavaScript.escape(MYCONFIG.dateformat) %]' + }); + kivi.reinit_widgets(); [% END %]