Color Weekends - Terrace scheme

The example 02_days_coloring shows how to create a different background for weekend days, by using the following code

		scheduler.templates.week_date_class=function(date,today){
			if (date.getDay()==0 || date.getDay()==6)
				return "weekday";	
			return "";
		}

and applying the following styling

	.dhx_scale_holder_now.weekday, .dhx_scale_holder.weekday{
		background-image:url(./imgs/week_bg.png);
	}

This works fine in the sample provided, but if I attempt to add the same code to a scheduler using the terrace css, the whole display breaks.

Do I need to use different code if I am using terrace?

It seems to be because the code in the sample seems to be missing a ;

I corrected the code that I had copied from 02_days_coloring and it is no longer causing an error.

You might wish to check line 32 of 02_days_coloring.html in your samples.

Hello,
what exactly is wrong with the sample?
the line 32 is
scheduler.init(‘scheduler_here’,new Date(2010,0,10),“week”);
which is a regular initialization of the scheduler

I’ve also tried this example with the terrace skin(just replaced scheduler.css link with dhtmlxscheduler_dhx_terrace js/css), and everything seemed correct

It seems to be because the code in the sample seems to be missing a ;
There is a missing semicolon after week_date_class template, sorry, didn’t notice it before. Was it causing the problem?

Yes, the missing ; was causing my problem.

For some reason, it didn’t throw an error in IE9 but it did throw an error in Firefox.