Title: Mini calendar multiple open windows
Last modified: August 22, 2016

---

# Mini calendar multiple open windows

 *  Resolved [Fizzeee](https://wordpress.org/support/users/fizzeee/)
 * (@fizzeee)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/mini-calendar-multiple-open-windows/)
 * Hi, i’ve encountered a problem with the mini calendar and i need help.
    So, when
   I have clicked on a date, and I click on another one, the first one doesn’t close.
   I can only close it with the X. Take a look at a screenshot – [http://imgur.com/uA9jcE1](http://imgur.com/uA9jcE1)
   So basicaly the first window should close when clicking on the second one. Is
   trere a way to do it? Thanks in advance!
 * [https://wordpress.org/plugins/my-calendar/](https://wordpress.org/plugins/my-calendar/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Author [Joe Dolson](https://wordpress.org/support/users/joedolson/)
 * (@joedolson)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/mini-calendar-multiple-open-windows/#post-5786229)
 * This can be done, yes – I’ll have to answer it on Monday, however, as it’s a 
   little involved and that’s not something I can spend time on today.
 *  Thread Starter [Fizzeee](https://wordpress.org/support/users/fizzeee/)
 * (@fizzeee)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/mini-calendar-multiple-open-windows/#post-5786327)
 * Still looking for a solution to this.
 *  Plugin Author [Joe Dolson](https://wordpress.org/support/users/joedolson/)
 * (@joedolson)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/mini-calendar-multiple-open-windows/#post-5786335)
 * Sorry about that! No excuses; I just forgot about it. I’ll get this answered 
   later today.
 *  Plugin Author [Joe Dolson](https://wordpress.org/support/users/joedolson/)
 * (@joedolson)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/mini-calendar-multiple-open-windows/#post-5786336)
 * So, it’s not really that involved; more that I needed to be able to test the 
   answer before giving it.
 * Add this line to mc-mini.js or create a custom mc-mini.js with this line after
   the first e.preventDefault();
 * `$(".mini .has-events").children().not(".trigger, .mc-date, .event-date").hide();`
 * I’ll probably add this to the next release; I think it would be preferable for
   the mini calendar.
 *  Plugin Author [Joe Dolson](https://wordpress.org/support/users/joedolson/)
 * (@joedolson)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/mini-calendar-multiple-open-windows/#post-5786337)
 * A slightly *better* solution is to replace the line after e.preventDefault() 
   with these:
 *     ```
       var current_date = $(this).parent().children();
       current_date.not(".trigger").toggle().attr("tabindex", "-1").focus();
       $(".mini .has-events").children().not(".trigger, .mc-date, .event-date").not( current_date ).hide();
       ```
   
 *  Thread Starter [Fizzeee](https://wordpress.org/support/users/fizzeee/)
 * (@fizzeee)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/mini-calendar-multiple-open-windows/#post-5786346)
 * Ha, it worked!
    Thank you for your time and support!

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Mini calendar multiple open windows’ is closed to new replies.

 * ![](https://ps.w.org/my-calendar/assets/icon-256x256.png?rev=1097576)
 * [My Calendar - Accessible Event Manager](https://wordpress.org/plugins/my-calendar/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/my-calendar/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/my-calendar/)
 * [Active Topics](https://wordpress.org/support/plugin/my-calendar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/my-calendar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/my-calendar/reviews/)

## Tags

 * [calendar](https://wordpress.org/support/topic-tag/calendar/)
 * [close](https://wordpress.org/support/topic-tag/close/)
 * [multiple](https://wordpress.org/support/topic-tag/multiple/)
 * [open](https://wordpress.org/support/topic-tag/open/)
 * [problem](https://wordpress.org/support/topic-tag/problem/)
 * [windows](https://wordpress.org/support/topic-tag/windows/)

 * 6 replies
 * 2 participants
 * Last reply from: [Fizzeee](https://wordpress.org/support/users/fizzeee/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/mini-calendar-multiple-open-windows/#post-5786346)
 * Status: resolved