Skip to content

Commit

Permalink
Merge pull request #20 from Ivor/master
Browse files Browse the repository at this point in the history
FIxed Bug that prevented duration from being shown for Time Range.
  • Loading branch information
tobico committed Mar 1, 2012
2 parents cf85402 + 0174ff6 commit 597f3a1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions jquery.calendrical.js
Original file line number Diff line number Diff line change
Expand Up @@ -468,9 +468,10 @@
var startTime = parseTime(options.startTime.val());
//Don't display duration if part of a datetime range,
//and start and end times are on different days
if (options.startDate && options.endDate &&
!areDatesEqual(parseDate(options.startDate.val(), options),
parseDate(options.endDate.val())), options) {
if (options.startDate &&
options.endDate &&
!areDatesEqual(parseDate(options.startDate.val(), options),
parseDate(options.endDate.val(), options))) {
startTime = null;
}
if (startTime) {
Expand Down

0 comments on commit 597f3a1

Please sign in to comment.