Skip to content

Commit

Permalink
added TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
t1m0n committed Jun 27, 2016
1 parent 4295d13 commit 1fb4c1f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/js/datepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -1518,7 +1518,6 @@
html = render.html ? render.html : html;
classes += render.classes ? ' ' + render.classes : '';
}

if (opts.range) {
if (dp.isSame(parent.minRange, date, type)) classes += ' -range-from-';
if (dp.isSame(parent.maxRange, date, type)) classes += ' -range-to-';
Expand All @@ -1539,6 +1538,7 @@
}

} else if (parent.selectedDates.length == 2) {
//TODO fix bigger and less with timepicker
if (dp.bigger(parent.minRange, date) && dp.less(parent.maxRange, date)) {
classes += ' -in-range-'
}
Expand Down
2 changes: 1 addition & 1 deletion src/js/body.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@
html = render.html ? render.html : html;
classes += render.classes ? ' ' + render.classes : '';
}

if (opts.range) {
if (dp.isSame(parent.minRange, date, type)) classes += ' -range-from-';
if (dp.isSame(parent.maxRange, date, type)) classes += ' -range-to-';
Expand All @@ -124,6 +123,7 @@
}

} else if (parent.selectedDates.length == 2) {
//TODO fix bigger and less with timepicker
if (dp.bigger(parent.minRange, date) && dp.less(parent.maxRange, date)) {
classes += ' -in-range-'
}
Expand Down

0 comments on commit 1fb4c1f

Please sign in to comment.