Skip to content

Commit

Permalink
Keep the time settings on the right side instead of using the left si…
Browse files Browse the repository at this point in the history
…de one
  • Loading branch information
lleirborras committed Nov 2, 2015
1 parent a7e12eb commit 80d6170
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions daterangepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -846,6 +846,13 @@
} else if (side == 'right') {
selected = this.endDate ? this.endDate.clone() : this.startDate.clone();
minDate = this.startDate;

var timeSelector = this.container.find('.calendar.right .calendar-time div');
if(timeSelector.html() != '') {
selected.hour(timeSelector.find('.hourselect option:selected').val() || selected.hour());
selected.minute(timeSelector.find('.minuteselect option:selected').val() || selected.minute());
selected.second(timeSelector.find('.secondselect option:selected').val() || selected.second());
}
}

//
Expand Down

0 comments on commit 80d6170

Please sign in to comment.