WordPress.org

Ready to get started?Download WordPress

Forums

The Events Calendar
[resolved] Gridview date selectors (5 posts)

  1. guiniveretoo
    Member
    Posted 1 year ago #

    Hi There ModernTribe!

    I just found a bit of a bug when using this plugin with the Uniform JS library (Uniformjs.com). It adds wrappers around any form elements, and messes up your datepicker dropdown script. Instead of returning "http://example.com/events/2012-10" it returns "http://example.com/events/undefined2012-10".

    On line 50 of the events.js file, there's a line that looks like this:

    baseUrl = $(this).parent().attr("action");

    Because Uniform.js wraps inputs and selectors in divs (so it can replace them with pretty-looking spans), the 'parent' of doesn't have an 'action' when this happens. A solution to this is to replace that line with this:

    baseUrl = $(this).closest('form').attr("action");

    Hope this helps someone else!

    http://wordpress.org/extend/plugins/the-events-calendar/

  2. faction23
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks for the note! I've modified the baseurl to go with id of form to guarantee we get it right. ;) Goes into 3.0.

  3. roblagatta
    Modern Tribe Support
    Plugin Author

    Posted 1 year ago #

    Just wanted to follow-up to say thanks for the suggestion here, guiniveretoo. As Sam noted in his follow-up we've adjusted the code so this gets fixed in the 3.0 release, which we're working on now and should have out over the next few months.

    Going to mark this Resolved since it seems we're set in the short-term, but please let us know if you need anything else in the future. Thanks again for your use of The Events Calendar.

  4. guiniveretoo
    Member
    Posted 1 year ago #

    Sounds good! Glad I could help :)

  5. roblagatta
    Modern Tribe Support
    Plugin Author

    Posted 1 year ago #

    Thanks again for your support!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic