WordPress.org

Ready to get started?Download WordPress

Forums

Editorial Calendar
[resolved] [BugFix] Last Day of Month has month-future class (5 posts)

  1. Dan Bernardic
    Member
    Posted 1 year ago #

    Hey again guys,

    In edcal.js, line 694:

    edcal.firstDayOfNextMonth = Date.today().moveToLastDayOfMonth().clearTime();

    Take a look at Nov. 30, and you will see it has the look/css class of month-future.

    If you change to something like:

    edcal.firstDayOfNextMonth = Date.today().moveToLastDayOfMonth().addDays(1).clearTime();

    It will probably solve this bug.

    Thanks for sharing your software.

    http://wordpress.org/extend/plugins/editorial-calendar/

  2. Zack Grossbart
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Dan,

    Thanks so much for the fix. but I'm not sure I understand the bug. I just logged into our test blog:

    http://www.zackgrossbart.com/extras/sandbox/wp-admin/edit.php?page=cal

    I look at November 30th and it seems to have the same styling as November 29th. Am I missing something or am I having trouble reproducing the issue?

    Thanks,
    Zack

  3. Dan Bernardic
    Member
    Posted 1 year ago #

    Ah! Never mind, I see what I did wrong.

    It does have the same styling, you're right.

  4. Zack Grossbart
    Member
    Plugin Author

    Posted 1 year ago #

    No worries. I love easy problems.

  5. Dan Bernardic
    Member
    Posted 1 year ago #

    :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.