Skip to content

Commit

Permalink
Merge pull request #94 from dittodhole/master
Browse files Browse the repository at this point in the history
minor code optimization & fixed wrong adaption of endDate of multiday-events
  • Loading branch information
themouette committed Oct 31, 2011
2 parents 11439f5 + 69aa16a commit 4d3bd02
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions jquery.weekcalendar.js
Expand Up @@ -896,7 +896,6 @@

//now let's display oddEven placeholders
for (var i = 1; i <= options.daysToShow; i++) {
if (options.displayOddEven) {
if (!showAsSeparatedUser) {
oddEven = (oddEven == 'odd' ? 'even' : 'odd');
renderRow += '<td class=\"wc-day-column day-' + i + '\">';
Expand All @@ -915,7 +914,6 @@
renderRow += '</div>';
renderRow += '</td>';
}
}
}
}
renderRow += '</tr>';
Expand Down Expand Up @@ -1361,8 +1359,8 @@
calEvent.start = start;
//end of this virual calEvent is set to the end of the day
calEvent.end.setFullYear(start.getFullYear());
calEvent.end.setMonth(start.getMonth());
calEvent.end.setDate(start.getDate());
calEvent.end.setMonth(start.getMonth());
calEvent.end.setHours(maxHour);
calEvent.end.setMinutes(0);
calEvent.end.setSeconds(0);
Expand Down

0 comments on commit 4d3bd02

Please sign in to comment.