|
Lines 153-159
Link Here
|
| 153 |
|
153 |
|
| 154 |
$(document).ready(function() { |
154 |
$(document).ready(function() { |
| 155 |
|
155 |
|
| 156 |
[% IF ( dateformat_metric ) %] $.tablesorter.addParser({ // http://tablesorter.com/docs/example-parsers.html |
156 |
[% IF ( dateformat == "metric" ) %] $.tablesorter.addParser({ // http://tablesorter.com/docs/example-parsers.html |
| 157 |
id: 'shortDates', |
157 |
id: 'shortDates', |
| 158 |
is: function(s){ |
158 |
is: function(s){ |
| 159 |
return false; |
159 |
return false; |
|
Lines 173-187
Link Here
|
| 173 |
$("#branch").change(function(){ |
173 |
$("#branch").change(function(){ |
| 174 |
changeBranch(); |
174 |
changeBranch(); |
| 175 |
}); |
175 |
}); |
| 176 |
$("#holidayexceptions").tablesorter({[% IF ( dateformat_metric ) %] |
176 |
$("#holidayexceptions").tablesorter({[% IF ( dateformat == "metric" ) %] |
| 177 |
dateFormat: 'uk',[% END %] |
177 |
dateFormat: 'uk',[% END %] |
| 178 |
sortList: [[0,0]], widgets: ['zebra'] |
178 |
sortList: [[0,0]], widgets: ['zebra'] |
| 179 |
}); |
179 |
}); |
| 180 |
$("#holidayweeklyrepeatable").tablesorter({[% IF ( dateformat_metric ) %] |
180 |
$("#holidayweeklyrepeatable").tablesorter({[% IF ( dateformat == "metric" ) %] |
| 181 |
dateFormat: 'uk',[% END %] |
181 |
dateFormat: 'uk',[% END %] |
| 182 |
sortList: [[0,0]], widgets: ['zebra'] |
182 |
sortList: [[0,0]], widgets: ['zebra'] |
| 183 |
}); |
183 |
}); |
| 184 |
$("#holidaysyearlyrepeatable").tablesorter({[% IF ( dateformat_metric ) %] |
184 |
$("#holidaysyearlyrepeatable").tablesorter({[% IF ( dateformat == "metric" ) %] |
| 185 |
headers : { |
185 |
headers : { |
| 186 |
0: { |
186 |
0: { |
| 187 |
sorter : 'shortDates' |
187 |
sorter : 'shortDates' |
|
Lines 189-195
Link Here
|
| 189 |
},[% END %] |
189 |
},[% END %] |
| 190 |
sortList: [[0,0]], widgets: ['zebra'] |
190 |
sortList: [[0,0]], widgets: ['zebra'] |
| 191 |
}); |
191 |
}); |
| 192 |
$("#holidaysunique").tablesorter({[% IF ( dateformat_metric ) %] |
192 |
$("#holidaysunique").tablesorter({[% IF ( dateformat == "metric" ) %] |
| 193 |
dateFormat: 'uk',[% END %] |
193 |
dateFormat: 'uk',[% END %] |
| 194 |
sortList: [[0,0]], widgets: ['zebra'] |
194 |
sortList: [[0,0]], widgets: ['zebra'] |
| 195 |
}); |
195 |
}); |
|
Lines 281-287
td.repeatableyearly a.ui-state-default, .repeatableyearly { background: #FFFF9
Link Here
|
| 281 |
<strong>From Date:</strong> |
281 |
<strong>From Date:</strong> |
| 282 |
<span id="showDaynameOutput"></span>, |
282 |
<span id="showDaynameOutput"></span>, |
| 283 |
|
283 |
|
| 284 |
[% IF ( dateformat_us ) %]<span id="showMonthOutput"></span>/<span id="showDayOutput"></span>/<span id="showYearOutput"></span>[% ELSIF ( dateformat_metric ) %]<span id="showDayOutput"></span>/<span id="showMonthOutput"></span>/<span id="showYearOutput"></span>[% ELSE %]<span id="showYearOutput"></span>/<span id="showMonthOutput"></span>/<span id="showDayOutput"></span>[% END %] |
284 |
[% IF ( dateformat == "us" ) %]<span id="showMonthOutput"></span>/<span id="showDayOutput"></span>/<span id="showYearOutput"></span>[% ELSIF ( dateformat == "metric" ) %]<span id="showDayOutput"></span>/<span id="showMonthOutput"></span>/<span id="showYearOutput"></span>[% ELSE %]<span id="showYearOutput"></span>/<span id="showMonthOutput"></span>/<span id="showDayOutput"></span>[% END %] |
| 285 |
|
285 |
|
| 286 |
<input type="hidden" id="showDayname" name="showDayname" /> |
286 |
<input type="hidden" id="showDayname" name="showDayname" /> |
| 287 |
<input type="hidden" id="showWeekday" name="showWeekday" /> |
287 |
<input type="hidden" id="showWeekday" name="showWeekday" /> |
|
Lines 351-357
td.repeatableyearly a.ui-state-default, .repeatableyearly { background: #FFFF9
Link Here
|
| 351 |
<strong>From date:</strong> |
351 |
<strong>From date:</strong> |
| 352 |
<span id="newDaynameOutput"></span>, |
352 |
<span id="newDaynameOutput"></span>, |
| 353 |
|
353 |
|
| 354 |
[% IF ( dateformat_us ) %]<span id="newMonthOutput"></span>/<span id="newDayOutput"></span>/<span id="newYearOutput"></span>[% ELSIF ( dateformat_metric ) %]<span id="newDayOutput"></span>/<span id="newMonthOutput"></span>/<span id="newYearOutput"></span>[% ELSE %]<span id="newYearOutput"></span>/<span id="newMonthOutput"></span>/<span id="newDayOutput"></span>[% END %] |
354 |
[% IF ( dateformat == "us" ) %]<span id="newMonthOutput"></span>/<span id="newDayOutput"></span>/<span id="newYearOutput"></span>[% ELSIF ( dateformat == "metric" ) %]<span id="newDayOutput"></span>/<span id="newMonthOutput"></span>/<span id="newYearOutput"></span>[% ELSE %]<span id="newYearOutput"></span>/<span id="newMonthOutput"></span>/<span id="newDayOutput"></span>[% END %] |
| 355 |
|
355 |
|
| 356 |
<input type="hidden" id="newDayname" name="showDayname" /> |
356 |
<input type="hidden" id="newDayname" name="showDayname" /> |
| 357 |
<input type="hidden" id="newWeekday" name="newWeekday" /> |
357 |
<input type="hidden" id="newWeekday" name="newWeekday" /> |
|
Lines 505-511
td.repeatableyearly a.ui-state-default, .repeatableyearly { background: #FFFF9
Link Here
|
| 505 |
<table id="holidaysyearlyrepeatable"> |
505 |
<table id="holidaysyearlyrepeatable"> |
| 506 |
<thead> |
506 |
<thead> |
| 507 |
<tr> |
507 |
<tr> |
| 508 |
[% IF ( dateformat_metric ) %] |
508 |
[% IF ( dateformat == "metric" ) %] |
| 509 |
<th class="repeatableyearly">Day/Month</th> |
509 |
<th class="repeatableyearly">Day/Month</th> |
| 510 |
[% ELSE %] |
510 |
[% ELSE %] |
| 511 |
<th class="repeatableyearly">Month/Day</th> |
511 |
<th class="repeatableyearly">Month/Day</th> |