X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/14d5612bd71957448bb5a6325cb8650d84e7dd54..a56327d7da54b291ceb55af12e46757d3f8f05e4:/templates/webpages/layout/javascript_setup.html diff --git a/templates/webpages/layout/javascript_setup.html b/templates/webpages/layout/javascript_setup.html index 49ecb0a3c..3508ef85c 100644 --- a/templates/webpages/layout/javascript_setup.html +++ b/templates/webpages/layout/javascript_setup.html @@ -2,4 +2,19 @@ $(function() { setupPoints('[% myconfig.numberformat %]', '[% 'wrongformat' | $T8 %]'); setupDateFormat('[% myconfig.dateformat %]', '[% 'Falsches Datumsformat!' | $T8 %]'); + + $.datepicker.setDefaults( + $.extend({}, $.datepicker.regional["[% myconfig.countrycode %]"], { + dateFormat: "[% datefmt %]", + showOn: "button", + showButtonPanel: true, + changeMonth: true, + changeYear: true, + buttonImage: "image/calendar.png", + buttonImageOnly: true + })); + + $('.datepicker').each(function() { + $(this).datepicker(); + }); })