Revision e12523e1
Von Cem Aydin vor fast 2 Jahren hinzugefügt
templates/design40_webpages/layout/javascript_setup.js | ||
---|---|---|
1 |
[% USE LxERP %] |
|
2 |
[% USE JavaScript %] |
|
3 |
[% USE JSON %] |
|
4 |
kivi.myconfig = [% JSON.json(MYCONFIG) %]; |
|
5 |
$(function() { |
|
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'), |
|
9 |
showOn: "button", |
|
10 |
showButtonPanel: true, |
|
11 |
changeMonth: true, |
|
12 |
changeYear: true, |
|
13 |
buttonImage: "image/calendar.png", |
|
14 |
buttonImageOnly: true |
|
15 |
})); |
|
16 |
|
|
17 |
kivi.setup_formats({ |
|
18 |
numbers: kivi.myconfig.numberformat, |
|
19 |
dates: kivi.myconfig.dateformat, |
|
20 |
times: kivi.myconfig.timeformat |
|
21 |
}); |
|
22 |
|
|
23 |
kivi.reinit_widgets(); |
|
24 |
|
|
25 |
[% IF ajax_spinner %] |
|
26 |
$(document).ajaxSend(function() { |
|
27 |
$('#ajax-spinner').show(); |
|
28 |
}).ajaxStop(function() { |
|
29 |
$('#ajax-spinner').hide(); |
|
30 |
}); |
|
31 |
[% END %] |
|
32 |
}); |
|
33 |
|
|
34 |
[% IF focus %] |
|
35 |
function fokus() { |
|
36 |
$('[% focus %]').focus(); |
|
37 |
} |
|
38 |
[% END %] |
Auch abrufbar als: Unified diff
design40: Fehlende Template layout/javascript_setup.js kopiert
- Formatierung vereinheitlicht