Shawn K. Hall wrote:
Hi Monty,
 
  
I made a change to my calendar.js to utilize a color
definition for local events.   It was a tiny change,
but being a novice at js I am curious if I have done
anything using a poor method..
...
colordef=' style="color:' + clr + '"; '
...
    

I would rather use classes to assign display styles, so they can be
controlled globally in the CSS with a single change. Otherwise if
they've also customized their look and feel they'll have to go
through the events and one-by-one change them to a working color.
  
Hi Shawn,

Actually I didn't use a class so the events *could* be color coded individually...  I have a couple different kinds of events in my localdefs file, each with their own color... 

If the color tag is omitted or empty, the class for events gets implemented, and the calendar will display like it does now..   If someone has customized their color scheme, their modifications should not be affected.   I don't think backward compatibility should be an issue.. 

Is this a bad idea?

Monty



Reply via email to