Lokalisierungsdateien jquery-ui hinzugefĆ¼gt
[kivitendo-erp.git] / templates / webpages / layout / javascript_setup.html
index 49ecb0a..3508ef8 100644 (file)
@@ -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();
+  });
 })