Start/End Dates Lose Value on Page Load

Home Forums Calendar Products Events Calendar PRO Start/End Dates Lose Value on Page Load

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #63501
    Jason Lovoy
    Participant

    When you attempt to edit an existing event with The Events Calendar Pro, there is some Javascript that is clearing out the value of the date. If it goes unnoticed, and the event is updated, the event date gets reset to the current date. The closest I came to finding a solution points to events-calendar-pro/resources/events-admin.js Line 296:
    $(‘#recurrence_end, #EventStartDate, #EventEndDate’).datepicker(‘option’, ‘onClose’, updateRecurrenceText);

    Something about setting the onClose option after these fields have already initialized as datepicker() causes the value to disappear. In my debugging, I’ve tried setting this event to an anonymous function, an empty function, and using a different syntax for setting the onClose option, but all still result in the same problem. The only way I could resolve it is just by commenting out this entire line. Please resolve this bug. This seems to be happening on multiple sites, not just 1. Thanks.

    #63526
    Barry
    Member

    Hi John,

    I see you tried deactivating other plugins/switching to a default theme – did the problem persist even then? The only other reports we’ve had of this have indicated a conflict where JS from another product is running on our own plugin’s admin screens.

    It would be great if you could confirm – thanks!

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Start/End Dates Lose Value on Page Load’ is closed to new replies.