|
Lines 220-230
Link Here
|
| 220 |
<select id="locale" name="locale"> |
220 |
<select id="locale" name="locale"> |
| 221 |
<option value=""></option> |
221 |
<option value=""></option> |
| 222 |
[% FOREACH locale IN locales %] |
222 |
[% FOREACH locale IN locales %] |
| 223 |
<option value="[% locale.language | html %]" data-subtag="[% locale.subtag | html %]">[% locale.description | html %]</option> |
223 |
<option value="[% locale.language | html %]">[% locale.description | html %]</option> |
| 224 |
[% END %] |
224 |
[% END %] |
| 225 |
</select> |
225 |
</select> |
| 226 |
<span class="hint">If empty, English is used</span> |
226 |
<span class="hint">If empty, English is used</span> |
| 227 |
<input type="hidden" id="subtag" name="subtag" value=""> |
|
|
| 228 |
</li> |
227 |
</li> |
| 229 |
</ol> |
228 |
</ol> |
| 230 |
<table> |
229 |
<table> |
|
Lines 332-341
Link Here
|
| 332 |
[% INCLUDE 'calendar.inc' %] |
331 |
[% INCLUDE 'calendar.inc' %] |
| 333 |
[% INCLUDE 'datatables.inc' %] |
332 |
[% INCLUDE 'datatables.inc' %] |
| 334 |
<script> |
333 |
<script> |
| 335 |
function setSubtag () { |
|
|
| 336 |
$("#subtag").val($("#locale").find(':selected').data('subtag')); |
| 337 |
} |
| 338 |
|
| 339 |
function confirmDelete() { |
334 |
function confirmDelete() { |
| 340 |
return confirm(_("Are you sure you want to delete this numbering pattern?")); |
335 |
return confirm(_("Are you sure you want to delete this numbering pattern?")); |
| 341 |
} |
336 |
} |
|
Lines 369-375
Link Here
|
| 369 |
'lastvalue1', 'lastvalue2', 'lastvalue3', 'add1', 'add2', 'add3', |
364 |
'lastvalue1', 'lastvalue2', 'lastvalue3', 'add1', 'add2', 'add3', |
| 370 |
'every1', 'every2', 'every3', 'innerloop1', 'innerloop2', 'innerloop3', |
365 |
'every1', 'every2', 'every3', 'innerloop1', 'innerloop2', 'innerloop3', |
| 371 |
'setto1', 'setto2', 'setto3', 'numbering1', 'numbering2', 'numbering3', |
366 |
'setto1', 'setto2', 'setto3', 'numbering1', 'numbering2', 'numbering3', |
| 372 |
'whenmorethan1', 'whenmorethan2', 'whenmorethan3', 'locale', 'subtag' |
367 |
'whenmorethan1', 'whenmorethan2', 'whenmorethan3', 'locale' |
| 373 |
]; |
368 |
]; |
| 374 |
for(i in ajaxParams) { |
369 |
for(i in ajaxParams) { |
| 375 |
var param = ajaxParams[i]; |
370 |
var param = ajaxParams[i]; |
|
Lines 410-420
Link Here
|
| 410 |
$("#test_pattern").on("click",function(){ |
405 |
$("#test_pattern").on("click",function(){ |
| 411 |
testPattern(); |
406 |
testPattern(); |
| 412 |
}); |
407 |
}); |
| 413 |
$("#locale").on("change", function() { |
|
|
| 414 |
setSubtag(); |
| 415 |
}); |
| 416 |
|
| 417 |
setSubtag(); |
| 418 |
}); |
408 |
}); |
| 419 |
</script> |
409 |
</script> |
| 420 |
[% END %] |
410 |
[% END %] |