• Resolved Fizzeee

    (@fizzeee)


    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 – https://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://www.ads-software.com/plugins/my-calendar/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Joe Dolson

    (@joedolson)

    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

    (@fizzeee)

    Still looking for a solution to this.

    Plugin Author Joe Dolson

    (@joedolson)

    Sorry about that! No excuses; I just forgot about it. I’ll get this answered later today.

    Plugin Author Joe Dolson

    (@joedolson)

    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

    (@joedolson)

    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

    (@fizzeee)

    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.