jQWidgets Forums

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts

  • adonati
    Participant

    Dimitar,

    Is this a bug? In every other case, the event is fired twice – when clicking on the first date (.from) and when clicking on the second date (.to). If the event is only fired once when the date is the same, how am I supposed to know that the user is done selecting a range?

    As I wrote before, the first click does not behave the same way as the second: on the second click, the widget is supposed to add 23:59:59 to the .To date.


    adonati
    Participant

    Dimitar,

    This is not what I see, the change event does not fire when selecting the To date, if it’s the same as the From date. I opened your Range selection example page in IE, loaded it in the F12 tools, and set a breakpoint in the Change event. The event is not fired on the second click to the same date. Once I select a new date (event is fired the first time), I can keep clicking that same date over and over and over, with no more events. I can see that the calendar UI reacts correctly ( it disables prior dates between first and second click), but no event is raised.

    Another point about the dates being the same in my code and thus skipping the alert(): the Calendar widget adds 23:59:59 to the To date when selecting the range, so that filtering from date X to date Y is inclusive of day Y. This would cause even my code to show an alert if the event was fired, because I compare date & time.

    Please try this again and let me know. If you see the event firing, maybe you can post an example where the text below the calendar shows both date AND time: this way, I will be able to see that the time of the To date changes from 0:00:00 to 23:59:59 when selecting the To date.

    Thank you,

Viewing 2 posts - 1 through 2 (of 2 total)