OnDayClick not working

Issue #4 resolved
Jonas Stokholm Olsen created an issue

Hey Lukasz

I love your calendar plugin. Easy to implement and style. But the OnDayClick-event is giving me a headache :) It doesn't seem to respond. I can see it's already reported as a bug. But is it corrected in the zipped download package yet?

Best regards

Comments (5)

  1. Lukasz Kokoszkiewicz repo owner

    Hi, as far as I see onDayClick event was fixed in version 0.2.1 so in 0.3 it should work perfectly, if it still doesn't work please let me know?

  2. Yuri Goikhman

    hi the onDayClick event is working only when the monthChangeAnimation options is true. the code

    if (thisRef.options.onDayClick) {
                  thisRef.$element.find('[data-group="days"] .day a').click(function() {
                    return thisRef.options.onDayClick.call(this, thisRef.options.events);
                  });
                }
    

    is present inside the delay function, and the delay function is called only when monthChangeAnimation=true

     if (thisRef.options.monthChangeAnimation) {
                return setTimeout(delay, 0);
              }
    
  3. Log in to comment