seperate oncalchange functions

I may have just missed it but how would you be able to have a seperate function fire when a day cell is clicked as opposed to the oncalchange function. I can either change months or have a day cell fire.

oncalchange feature request

IanTyndall's picture

If I'm understanding you correct... that you want to have two callback functions: one for when a day cell is clicked, and one for when the months change.

If this is true, this is already supported:

The day cell callback is the second parameter in the instantiation, the update callback. You can see an example of this in the oncalchange demo (http://scal.fieldguidetoprogrammers.com/scal-v02-documentation/scal-onca...) where I use the function updateSelect.

The month cell call back is the oncalchange.

If I've misunderstood your request, let me know.

hacked it out... comment out

hacked it out...
comment out line ~287
/*if(arguments[1]) { this.options.oncalchange(event); }*/

I am sure this is not the propper way but it works for me

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options