Home › Forums › Calendar Products › Events Calendar PRO › Ajax causes tribe_is_event() to break ?
- This topic has 3 replies, 4 voices, and was last updated 11 years, 6 months ago by
Leah.
-
AuthorPosts
-
January 31, 2014 at 10:46 pm #99549
Todd
ParticipantI have the conditional function tribe_is_event() in my template: (theme)/tribe-events/month/content.php.
On my main events page (site.com/events/) the page first loads, the function returns TRUE, as it should. But any AJAX reload of the page results in FALSE.
For example, i can use the ‘Events In’ month-picker, and pick the CURRENT month, so the page reloads via ajax… the content / events remain unchanged, yet now tribe_is_event() returns FALSE. Same problem if i pick a different month; or if i navigate to a different month using the links at the bottom.
I notice the URL changes via ajax. But if i start on — http://site.com/events/2014-02/ — and ajax-load to — http://site.com/events/2014-03/ — the problem occurs. And those urls have the same format.
So.. is this right? Is it a bug?
(ps- i tested this on Default Theme 2013, with no other plugins active than TEC 3.4).
February 5, 2014 at 6:00 pm #101227Brook
ParticipantHowdy toddz70,
First of all I am sorry it took us so long to get back to you. There was a mixup over here.
I can reproduce that on empty pages. For instance, if I go to March’s month view, which has no events on my text calendar, I am seeing the problem. Thanks for reporting this and being so thorough about testing. That is a great help. I will log this in our internal bug tracker that way it will get fixed in an upcoming release.
For now I would say it is safe to assume that the month view template parts are on event pages. You should be able to safely remove any calls to tribe_is_event() while we work on a fix. Or, am I not grasping the use case?
Please let me know if I can help. Cheers!
– Brook
March 27, 2014 at 2:50 pm #123967Barry
MemberUnfortunately we weren’t able to squeeze this one into our next upcoming release (3.5) but I wanted to drop a note in here to let you know it’s still on our radar and we will try hard to fit it in to the next release instead. Thanks for your support and patience in the meantime!
September 26, 2014 at 12:00 pm #768947Leah
MemberHi there,
I just wanted to let you know that we were able to work on this issue for our upcoming 3.8 release. Keep an eye out on your site for an update announcement! If you update and are still seeing this problem, please post a new thread so we can check it out. Thank you for your patience while we got this fix in place.
Best,
Leah
and the team at Modern Tribe
-
AuthorPosts
- The topic ‘Ajax causes tribe_is_event() to break ?’ is closed to new replies.
