WordPress.org

Support

Support » Plugins and Hacks » The Events Calendar » [Resolved] Gridview date selectors

[Resolved] Gridview date selectors

  • 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/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author faction23

    @faction23

    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.

    Plugin Author Rob La Gatta

    @roblagatta

    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.

    guiniveretoo

    @guiniveretoo

    Sounds good! Glad I could help 🙂

    Plugin Author Rob La Gatta

    @roblagatta

    Thanks again for your support!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] Gridview date selectors’ is closed to new replies.
Skip to toolbar