Hello i am using mini calendar in lightbox as
{name:“time”, height:72, type:“calendar_time”, map_to:“auto”}
but whenever i create new event in month view the time i chose is omitted and default start time is inserted as event time however setting time in day & week views are working fine.
am i missing something? please reply soon i am in desperate need to solve this as quick as possible.
i think the problem here was, mini calender was showing date picker & select boxes for time selection in lightbox but the get_value method was picking only the date with getElementsByTagName(“input”); omitting the select boxes used for time. i modified the function as follows:
get_value:function(B,A){
s =B.getElementsByTagName("input");
var t = B.getElementsByTagName("select");
var start_date = s[0]._date;
var end_date = s[1]._date;
var start_time = t[0].value;
var end_time = t[1].value;
start_date.setHours('',start_time);
end_date.setHours('',end_time);
A.start_date=start_date;
A.end_date=end_date;
if(A.end_date<=A.start_date){
A.end_date=scheduler.date.add(A.start_date,scheduler.config.time_step,"minute")
}
},
and its working for me now.
if there’s any other better way to do this i would like to know. thanks.
thanks for the quick mention. good to see that the calender replication issue in double click in the mini calendar date field is fixed too in the update you provided.
thanks a lot. all the examples you are providing are awesome, i think you guys should work on providing a sample for custom lightbox too. this will make dhtmlxscheduler more customizable.
i am working on the event creation part for some time now, and i have to find a way to customize the events repeat (recurring events) functionality. I want to remove the monthly & yearly repeats radio sets, the End by field to have default value of the selected event start date and the mini calendar should pop up on clicking on this field too. please help.
You can modify sources\repeat_template.html in necessary way, while you affecting only styles and attributes of existing HTML elements you are safe ( adding or removing new HTML elements can cause problems ) - for example you can put display:none on monthly and yearly sections