Home › Forums › Calendar Products › Events Calendar PRO › Mini Calendar: Slightly buggy markup for wrapper div and table
- This topic has 4 replies, 4 voices, and was last updated 10 years, 10 months ago by
Support Droid.
-
AuthorPosts
-
November 18, 2013 at 12:42 am #76911
inproma
ParticipantHello, dear Tribe people!
The Mini Calendar’s widget content gets wrapped in another <div class=”tribe-mini-calendar-wrapper”>. When switching months, the Ajax call is serving the new content wrapped in yet another <div class=”tribe-mini-calendar-wrapper”> and injects it into the already present one. So you end up with lots of nested <div class=”tribe-mini-calendar-wrapper”>.
What I did in mini-calendar-widget.php to prevent that from happening is this:
<?php $_is_xhr = array_key_exists('action', $_REQUEST) && $_REQUEST['action'] == 'tribe-mini-cal' ?>
<?php if (!$_is_xhr): ?>
<div class="tribe-mini-calendar-wrapper">
<?php endif ?>(Of course for the closing tag as well.) Not sure if this is the way to go but it definitely helped.
Another issue is that you’re using two <thead> for the calendar table. This is invalid markup and actually causes problems when trying to style this (at least in Chrome).jQuery, for example, uses a regular <div> to markup the month-switching part.
And you really, really should fix the form for starting a new discussion. My current input for getting this post right looks like this: http://cl.ly/SWi4
Which is quite a mess.
November 18, 2013 at 1:31 pm #77030Barry
MemberHi inproma,
We are indeed aware of the first issue (with the ajax responses for the calendar widget) – it’s logged in our issue tracker and should be resolved in an upcoming maintenance build.
Regarding your second point, we’re aware HTML entities are required in order to insert certain characters etc. We hope to make some improvements but for the time being we’d recommend simply dropping in a link to Pastebin, Gist or a similar service for any code you need to share.
Thanks!
December 17, 2013 at 3:47 pm #82410Leah
MemberHi there,
I just wanted to pop in here with a quick update. Although we were not able to get a fix for this into our imminent 3.3 release, it is still on the radar for inclusion in a future build. Thanks for your patience!
~Leah
January 21, 2014 at 2:45 pm #95323Leah
MemberHi there,
I’m happy to report that we have fixed this in our upcoming version 3.4. Keep an eye on your Plugins page for an update message! Thanks for your patience while we worked on this.
Best,
LeahJuly 7, 2015 at 6:30 am #982952Support Droid
KeymasterThis topic has not been active for quite some time and will now be closed.
If you still need assistance please simply open a new topic (linking to this one if necessary)
and one of the team will be only too happy to help. -
AuthorPosts
- The topic ‘Mini Calendar: Slightly buggy markup for wrapper div and table’ is closed to new replies.
