Skip to content
Browse files

Change day class to be 1-based month index

  • Loading branch information...
1 parent 27edc3d commit 2dac6e7468a830c10f89fd3e0b8f082b7e2118e4 @camerond committed Mar 21, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 public/javascript/jquery.minical.js
View
4 public/javascript/jquery.minical.js
@@ -279,7 +279,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
$day.addClass("minical_day");
}
$day.data("minical_date", new Date(current_day));
- $day.addClass("minical_day_" + [current_day.getMonth(), current_day.getDate(), current_day.getFullYear()].join("_"));
+ $day.addClass("minical_day_" + [current_day.getMonth() + 1, current_day.getDate(), current_day.getFullYear()].join("_"));
current_day.setTime(current_day.getTime() + 86400000);
}
$tr.find("td.minical_day").length ? $tr.appendTo($tbody) : false;
@@ -317,7 +317,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
}
function getDayClass(day) {
- return "td.minical_day_" + [day.getMonth(), day.getDate(), day.getFullYear()].join("_");
+ return "td.minical_day_" + [day.getMonth() + 1, day.getDate(), day.getFullYear()].join("_");
}
})(jQuery);

0 comments on commit 2dac6e7

Please sign in to comment.
Something went wrong with that request. Please try again.