Commit e2d1f726 authored by Alexandre Goldstein's avatar Alexandre Goldstein
Browse files

add datetimepicker attribute

parent 019fd839
Pipeline #12428 failed with stages
in 43 seconds
......@@ -258,16 +258,20 @@
//TODO find a workaround for firefox (type datetime-local not compatible)
var helperMin = $('<li/>').addClass("startDate DateTimePicker helperContent col-sm-4 padding-5").appendTo(row);
var helperMax = $('<li/>').addClass("endDate DateTimePicker helperContent col-sm-4 padding-5").appendTo(row);
var dateNow = new Date();
$('#helperValueMin').datetimepicker({
format:'DD/MM/YYYY HH:mm:ss',
defaultDate: new Date()
useCurrent: false,
defaultDate: dateNow
});
$('#helperValueMin').clone().attr('type','datetime-local').attr('data-range','start').attr('name', helperName).appendTo(helperMin).prev().remove();
$('#helperValueMax').datetimepicker({
format:'DD/MM/YYYY HH:mm:ss',
defaultDate: new Date()
useCurrent: false,
defaultDate: dateNow
});
$('#helperValueMax').clone().attr('type','datetime-local').attr('data-range','end').attr('name', helperName).appendTo(helperMax).prev().remove();
break;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment