Stanislav,
Thanks for the additional information, this wasn’t the right file to edit but I found the one I needed. The change to remove time needs to be made to plugins/event-calendar-scheduler/codebase/dhtmlxscheduler.js. I found a debug version in the code/link you sent me but it’s causing a “DataProcessor” window to popup and display the entire time. Do you have any ideas how I can disable this for the dhtmlxscheduler_debug.js, or is there a different version of the file I can use. I would prefer not to hack through the compressed version, since I made multiple changes on multiple lines.
If anybody wants to do this in the future, here is how to remove the “time” from the select list. See all comment lines with “ZH @ …”.
[code]scheduler.form_blocks={
textarea:{
render:function(sns){
var height=(sns.height||“130”)+“px”;
return “
”;
},
set_value:function(node,value,ev){
node.firstChild.value=value||"";
},
get_value:function(node,ev){
return node.firstChild.value;
},
focus:function(node){
var a=node.firstChild; a.select(); a.focus();
}
},
select:{
render:function(sns){
var height=(sns.height||“23”)+“px”;
var html="
";
for (var i=0; i < sns.options.length; i++)
html+=""+sns.options[i].label+"";
html+="
";
return html;
},
set_value:function(node,value,ev){
if (typeof value == “undefined”)
value = (node.firstChild.options[0]||{}).value;
node.firstChild.value=value||"";
},
get_value:function(node,ev){
return node.firstChild.value;
},
focus:function(node){
var a=node.firstChild; a.select(); a.focus();
}
},
time:{
render:function(){
//hours
var cfg = scheduler.config;
var dt = this.date.date_part(new Date());
var last = 24
60, first = 0;
if(scheduler.config.limit_time_select){
last = 60cfg.last_hour+1;
first = 60
cfg.first_hour;
dt.setHours(cfg.first_hour);
}
var html="";
/ ZH @ REMOVED TIME <-------------------------------------
var html+="";
for (var i=first; i<last; i+=this.config.time_step*1){
var time=this.templates.time_picker(dt);
html+=""+time+"";
dt=this.date.add(dt,this.config.time_step,“minute”);
}
html+="";
*/
//days
html+="";
for (var i=1; i < 32; i++)
html+=""+i+"";
//month
html+="</select> <select>";
for (var i=0; i < 12; i++)
html+="<option value='"+i+"'>"+this.locale.date.month_full[i]+"</option>";
//year
html+="</select> <select>";
dt = dt.getFullYear()-5; //maybe take from config?
for (var i=0; i < 10; i++)
html+="<option value='"+(dt+i)+"'>"+(dt+i)+"</option>";
html+="</select> ";
return "<div style='height:30px; padding-top:0px; font-size:inherit;' class='dhx_cal_lsection dhx_section_time'>"+html+"<span style='font-weight:normal; font-size:10pt;'> – </span>"+html+"</div>";
},
set_value:function(node,value,ev){
function _fill_lightbox_select(s,i,d){
/* ZH @ REMOVED TIME SET (Changed Array OffSets to compensates fro 2 less SELECT controls)<------------------------------------- s[i+0].value=Math.round((d.getHours()*60+d.getMinutes())/scheduler.config.time_step)*scheduler.config.time_step; */
s[i+0].value=d.getDate();
s[i+1].value=d.getMonth();
s[i+2].value=d.getFullYear();
}
var s=node.getElementsByTagName("select");
_fill_lightbox_select(s,0,ev.start_date);
_fill_lightbox_select(s,3,ev.end_date);
},
get_value:function(node,ev){
s=node.getElementsByTagName("select");
// ZH @ REMOVE TIME <-------------------------------------
ev.start_date=new Date(s[2].value,s[1].value,s[0].value);
// ZH @ REMOVE TIME <-------------------------------------
ev.end_date=new Date(s[5].value,s[4].value,s[3].value);
if (ev.end_date<=ev.start_date)
ev.end_date=scheduler.date.add(ev.start_date,scheduler.config.time_step,"minute");
},
focus:function(node){
node.getElementsByTagName("select")[0].focus();
}
}
}
[/code]