Skip to content

Commit

Permalink
Fixed issue #36 and issue #24 where the number of rows in the calenda…
Browse files Browse the repository at this point in the history
…r widget could be wrong
  • Loading branch information
UndefinedOffset committed Mar 7, 2014
1 parent d2c4270 commit 83cb7ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion javascript/calendar_widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@

var cell = 1;
var empties = 0;
var row_count = Math.ceil(this.monthLength/7);
var row_count = Math.ceil((this.startingDay+this.monthLength)/7);
for (var i = 0; i < row_count; i++) {
for (var j = 0; j <= 6; j++) {
date = "";
Expand Down

0 comments on commit 83cb7ea

Please sign in to comment.