summaryrefslogtreecommitdiffstats
path: root/modules-available/exams
diff options
context:
space:
mode:
authorChristian Klinger2016-07-05 11:01:36 +0200
committerChristian Klinger2016-07-05 11:01:36 +0200
commitc13625b75d44093253222e605ea11b1fcb6b4247 (patch)
treeb2f2ec6783709f374b879c398f1e65c07001db97 /modules-available/exams
parentMerge branch 'modularization' of git.openslx.org:openslx-ng/slx-admin into mo... (diff)
downloadslx-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.html39
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>