Skip to content
This repository was archived by the owner on Sep 12, 2024. It is now read-only.

Commit c1bb4e5

Browse files
committed
Version 0.0.9
1 parent bcc7e32 commit c1bb4e5

5 files changed

+14
-8
lines changed

dist/daterangepicker.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*!
22
* knockout-daterangepicker
3-
* version: 0.0.8
3+
* version: 0.0.9
44
* authors: Sensor Tower team
55
* license: MIT
66
* https://sensortower.github.io/daterangepicker

dist/daterangepicker.js

+9-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*!
22
* knockout-daterangepicker
3-
* version: 0.0.8
3+
* version: 0.0.9
44
* authors: Sensor Tower team
55
* license: MIT
66
* https://sensortower.github.io/daterangepicker
@@ -661,17 +661,23 @@
661661
};
662662

663663
CalendarHeaderView.prototype.prevArrowCss = function() {
664-
var date;
664+
var date, ref;
665665
date = this.firstDate().clone().subtract(1, 'millisecond');
666+
if ((ref = this.period()) === 'day' || ref === 'week') {
667+
date = date.endOf('month');
668+
}
666669
return {
667670
'arrow-hidden': !this.currentDate.isWithinBoundaries(date)
668671
};
669672
};
670673

671674
CalendarHeaderView.prototype.nextArrowCss = function() {
672-
var cols, date, ref, rows;
675+
var cols, date, ref, ref1, rows;
673676
ref = this.period.dimentions(), cols = ref[0], rows = ref[1];
674677
date = this.firstDate().clone().add(cols * rows, this.period());
678+
if ((ref1 = this.period()) === 'day' || ref1 === 'week') {
679+
date = date.startOf('month');
680+
}
675681
return {
676682
'arrow-hidden': !this.currentDate.isWithinBoundaries(date)
677683
};

dist/daterangepicker.min.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)