summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulien MUETTON <the.mouette@gmail.com>2011-10-31 06:25:05 -0700
committerJulien MUETTON <the.mouette@gmail.com>2011-10-31 06:25:05 -0700
commit4d3bd021b28da177da618605002e5b98816e304f (patch)
tree0663ad3403393f96a36bd9cf3c3c0884a74c3d46
parent11439f5ca059bfd565db7032ddcb4142adc0fb61 (diff)
parent69aa16a8512736f442565869aacdbdbc447317f5 (diff)
downloadjquery-week-calendar-4d3bd021b28da177da618605002e5b98816e304f.zip
jquery-week-calendar-4d3bd021b28da177da618605002e5b98816e304f.tar.gz
jquery-week-calendar-4d3bd021b28da177da618605002e5b98816e304f.tar.bz2
Merge pull request #94 from dittodhole/master
minor code optimization & fixed wrong adaption of endDate of multiday-events
-rw-r--r--jquery.weekcalendar.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/jquery.weekcalendar.js b/jquery.weekcalendar.js
index 89fbe54..6cd89cb 100644
--- a/jquery.weekcalendar.js
+++ b/jquery.weekcalendar.js
@@ -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 + '\">';
@@ -915,7 +914,6 @@
renderRow += '</div>';
renderRow += '</td>';
}
- }
}
}
renderRow += '</tr>';
@@ -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);