Hi,
i'm trying to fix a code that resets the "end time" minimum value to be half hour more than the "begin time".
For some reason, the code ends in error because it says that "min is not a function". In the docs it says it is? Is this some kind of bug of some sort?
Don't think it's due to wrong reference because the value function works. Can you help me here?
i'm trying to fix a code that resets the "end time" minimum value to be half hour more than the "begin time".
var value = $("#begin").data("kendoTimePicker").value();
var end = $("#end").data("kendoTimePicker");
if(value.getHours().toString() == "18" && value.getMinutes().toString() == "30")
{
var minimo = new Date(value.getTime() + 30*60000);
end.value(minimo);
end.enable(false);
}
else
{
var minimo = new Date(value.getTime() + 30*60000);
end.min(minimo);
end.enable(true);
}
For some reason, the code ends in error because it says that "min is not a function". In the docs it says it is? Is this some kind of bug of some sort?
Don't think it's due to wrong reference because the value function works. Can you help me here?