X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/9bf9acdff05a8047d0561c68cdd93b0a03deb568..f8ec31c6cf80a50a5b9ee29bd5847c47d5114bbf:/templates/webpages/layout/javascript_setup.js diff --git a/templates/webpages/layout/javascript_setup.js b/templates/webpages/layout/javascript_setup.js index 7346ca3ee..40424452b 100644 --- a/templates/webpages/layout/javascript_setup.js +++ b/templates/webpages/layout/javascript_setup.js @@ -1,12 +1,13 @@ [%- USE T8 %] +[%- USE JavaScript %] $(function() { [% IF datefmt %] - setupPoints('[% MYCONFIG.numberformat %]', '[% 'wrongformat' | $T8 %]'); - setupDateFormat('[% 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 %]"], { - dateFormat: "[% datefmt %]", + $.extend({}, $.datepicker.regional['[% JavaScript.escape(MYCONFIG.countrycode) %]'], { + dateFormat: '[% JavaScript.escape(datefmt) %]', showOn: "button", showButtonPanel: true, changeMonth: true, @@ -15,6 +16,11 @@ $(function() { buttonImageOnly: true })); + kivi.setup_formats({ + numbers: '[% JavaScript.escape(MYCONFIG.numberformat) %]', + dates: '[% JavaScript.escape(MYCONFIG.dateformat) %]' + }); + kivi.reinit_widgets(); [% END %]