Skip to content

Commit

Permalink
v 2.2.2
Browse files Browse the repository at this point in the history
fixing empty event lists
  • Loading branch information
Kevin Thornbloom committed Oct 6, 2017
1 parent ccd808d commit 2d54775
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 5 additions & 1 deletion README.md
Expand Up @@ -23,7 +23,11 @@ Did this plugin help you out? Support open source development! <a href="https://

##Changelog

🆕 v 2.2.0 - A good deal of edits (see details <a href="https://github.com/kthornbloom/Monthly/pull/41">here</a>) including localization, code cleanup & json events. <b>A big thank you to <a href="https://github.com/richardtallent">Richard Tallent</a> for this one!</b>
v 2.2.2 - Fixed <a href="https://github.com/kthornbloom/Monthly/issues/62">Issue 62</a>

v 2.2.1 - Fixed an AM/PM display bug

v 2.2.0 - A good deal of edits (see details <a href="https://github.com/kthornbloom/Monthly/pull/41">here</a>) including localization, code cleanup & json events. <b>A big thank you to <a href="https://github.com/richardtallent">Richard Tallent</a> for this one!</b>

v 2.1.0 - Fixed a bug where the event list would animate <i>in</i> but not <i>out</i>. Merged a pull request to include json support. (Thanks marekstodolny!) Made buttons more visible in header for closing event list & reverting to the current month.

Expand Down
6 changes: 2 additions & 4 deletions js/monthly.js
@@ -1,5 +1,5 @@
/*
Monthly 2.2.1 by Kevin Thornbloom is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Monthly 2.2.2 by Kevin Thornbloom is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
*/

(function ($) {
Expand Down Expand Up @@ -140,9 +140,7 @@ Monthly 2.2.1 by Kevin Thornbloom is licensed under a Creative Commons Attributi
}

// Reset button
$(parent + " .monthly-header-title").html(
'<a href="#" class="monthly-header-title-date" onclick="return false">' + monthNames[month - 1] + " " + year + "</a>"
+ (settingCurrentMonth ? "" : '<a href="#" class="monthly-reset"></a>'));
$(parent + " .monthly-header-title").html('<a href="#" class="monthly-header-title-date" onclick="return false">' + monthNames[month - 1] + " " + year + "</a>" + (settingCurrentMonth && $(parent + " .monthly-event-list").hide() ? "" : '<a href="#" class="monthly-reset"></a>'));

// Account for empty days at start
if(weekStartsOnMonday) {
Expand Down

0 comments on commit 2d54775

Please sign in to comment.