Closed OndrejVicar closed 7 years ago
Yeah I know, thanks master, but there are two little problems...
I found a solution, and made JS for this:
/*Add timepicker to this field*/
//separate max values
var separateTime = $('#id_time_spend').val().split(":");
var TimeHours = separateTime[0];
var TimeMinutes = separateTime[1];
var TimeSeconds = separateTime[2];
//add timepicker with options
$('#id_time_spend').datetimepicker({
format: "HH:mm:ss",
maxDate: moment({
h:TimeHours,
m:TimeMinutes,
s:TimeSeconds
})
});
Time picker in swipe detail is great. It could be also used in Session table.