4 kivi.myconfig = [% JSON.json(MYCONFIG) %];
6 $.datepicker.setDefaults(
7 $.extend({}, $.datepicker.regional[kivi.myconfig.countrycode], {
8 dateFormat: kivi.myconfig.dateformat.replace(/d+/gi, 'dd').replace(/m+/gi, 'mm').replace(/y+/gi, 'yy'),
10 showButtonPanel: true,
13 buttonImage: "image/calendar.png",
18 numbers: kivi.myconfig.numberformat,
19 dates: kivi.myconfig.dateformat
22 kivi.reinit_widgets();
24 [%- IF ajax_spinner %]
25 $(document).ajaxSend(function() {
26 $('#ajax-spinner').show();
27 }).ajaxStop(function() {
28 $('#ajax-spinner').hide();
35 $('[% focus %]').focus();