Just one Time - no Endtime

Hello,

first thanx for all you people for that fantastic project.
I want to use dhtmlxSchedule for recording of time worked. I want to hide the Endtime or Create a new Section for time, is this possible ?

thanx

Hi,
you could create new control for time,
docs.dhtmlx.com/doku.php?id=dhtm … om_editors
but it would be easier to modify the default one. You can access it’s dom element and hide end-time selectors:[code] scheduler.attachEvent(“onBeforeLightbox”, function(id){
var node = scheduler.formSection(“time”).node;
node.getElementsByTagName(‘span’)[0].style.display = “none”;//hide dash

		var selects = node.getElementsByTagName('select');
		for(var i= 4, count = selects.length; i < count;i++)
			selects[i].style.display = "none";//hide end-time selects

		return true;
	});[/code]

works great with the modification.

thanx Aliaksandr