diff options
author | Christian Klinger | 2016-07-05 11:01:36 +0200 |
---|---|---|
committer | Christian Klinger | 2016-07-05 11:01:36 +0200 |
commit | c13625b75d44093253222e605ea11b1fcb6b4247 (patch) | |
tree | b2f2ec6783709f374b879c398f1e65c07001db97 /modules-available/exams | |
parent | Merge branch 'modularization' of git.openslx.org:openslx-ng/slx-admin into mo... (diff) | |
download | slx-admin-c13625b75d44093253222e605ea11b1fcb6b4247.tar.gz slx-admin-c13625b75d44093253222e605ea11b1fcb6b4247.tar.xz slx-admin-c13625b75d44093253222e605ea11b1fcb6b4247.zip |
i18n for bootstrap_datepicker.
Diffstat (limited to 'modules-available/exams')
-rw-r--r-- | modules-available/exams/templates/page-add-edit-exam.html | 39 |
1 files changed, 25 insertions, 14 deletions
diff --git a/modules-available/exams/templates/page-add-edit-exam.html b/modules-available/exams/templates/page-add-edit-exam.html index 3cc38cfb..7d74972d 100644 --- a/modules-available/exams/templates/page-add-edit-exam.html +++ b/modules-available/exams/templates/page-add-edit-exam.html @@ -77,20 +77,31 @@ <script type="application/javascript"><!-- document.addEventListener("DOMContentLoaded", function () { - var dateSettings = { - format: 'yyyy-mm-dd', - weekStart: 1, - startDate: 'today', - }; - var timeSettings = { - showSeconds: false, - showMeridian: false, - minuteStep: 5, - appendWidgetTo: 'body' - }; - $('.datepicker').datepicker(dateSettings); - $('.timepicker2').timepicker(timeSettings); + var filename = "modules/bootstrap_datepicker/lang/bootstrap-datepicker." + LANG + ".js"; + + $.getScript(filename) + .always(function () { + /* TODO: generalize this (set locale in the clientscript.js of bootstrap_datepicker) */ + var dateSettings = { + format: 'yyyy-mm-dd', + weekStart: 1, + startDate: 'today', + language: LANG + }; + var timeSettings = { + showSeconds: false, + showMeridian: false, + minuteStep: 5, + appendWidgetTo: 'body' + + }; + $('.datepicker').datepicker(dateSettings); + $('.timepicker2').timepicker(timeSettings); + + $('#locations').multiselect({numberDisplayed: 1}); + + + }); - $('#locations').multiselect({numberDisplayed: 1}); }, false); // --></script> |