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,
20 times: kivi.myconfig.timeformat
23 kivi.reinit_widgets();
25 [%- IF ajax_spinner %]
26 $(document).ajaxSend(function() {
27 $('#ajax-spinner').show();
28 }).ajaxStop(function() {
29 $('#ajax-spinner').hide();
36 $('[% focus %]').focus();