1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-08 15:46:44 +02:00

Language fix for datetimepicker()

This commit is contained in:
Cameron
2013-11-21 19:43:00 -08:00
parent 9ab74b665c
commit 459ffe40de
3 changed files with 14 additions and 7 deletions

View File

@@ -155,23 +155,24 @@ $(document).ready(function()
// https://github.com/smalot/bootstrap-datetimepicker
$("input.e-date").each(function() {
$("input.e-date").each(function() {
$(this).datetimepicker({
minView: 'month',
maxView: 'decade',
autoclose: true,
format: $(this).attr("data-date-format"),
weekStart: $(this).attr("data-date-firstday")
weekStart: $(this).attr("data-date-firstday"),
language: $(this).attr("data-date-language")
});
});
$("input.e-datetime").each(function() {
$("input.e-datetime").each(function() {
$(this).datetimepicker({
autoclose: true,
format: $(this).attr("data-date-format"),
weekStart: $(this).attr("data-date-firstday"),
showMeridian: $(this).attr("data-date-ampm")
showMeridian: $(this).attr("data-date-ampm"),
language: $(this).attr("data-date-language")
});
});