All-in-One Event Calendar
[resolved] Bugfix for date and time js error (3 posts)

  1. indeliblemind
    Posted 4 years ago #

    Sorry if this isn't the right place to put bugfixes. I'm new to contributing to plugins. This one is super simple and may save people a lot of time if the date calendar and time drop down aren't working for them.

    On the Edit Event page, the start date/time and end date/time don't always show the calendar or time drop down and often don't save correctly to the database. This seems to be caused by a simple typo and should be a quick fix for the next version.

    On line 313 of the add_new_event.js file (in app>view>admin>js) there is a regex variable declared like this:

    var regexp = /(http|https|webcal):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/

    It's missing a semicolon at the end and should be this:

    var regexp = /(http|https|webcal):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/;

    From my tests that removes a lot of the problems with conflicting themes and plugins.

    I hope it helps!


  2. Yani Iliev
    Plugin Contributor

    Posted 4 years ago #

    @ indeliblemind
    Thanks for contributing the bugfix.

  3. indeliblemind
    Posted 4 years ago #

    No problem. Fantastic plugin! Thanks for all your work.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • All-in-One Event Calendar
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic