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

Commit

Permalink
Merge pull request #8 from sensortower/next-arrow-fixes
Browse files Browse the repository at this point in the history
Next arrow fixes
  • Loading branch information
petethepig committed Jan 13, 2016
2 parents b0af8cb + 3aaa71d commit bcc7e32
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion gulpfile.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import del from 'del';

const $ = gulpLoadPlugins();


requireDir('./tasks');

gulp.task('clean', del.bind(null, ['.tmp', '.publish', 'dist']));
Expand Down
4 changes: 2 additions & 2 deletions src/scripts/daterangepicker/calendar-header-view.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,15 @@ class CalendarHeaderView

prevArrowCss: ->
date = @firstDate().clone().subtract(1, 'millisecond')
date = date.endOf('month') if @period() in ['day', 'week']
{'arrow-hidden': !@currentDate.isWithinBoundaries(date)}

nextArrowCss: ->
[cols, rows] = @period.dimentions()
date = @firstDate().clone().add(cols * rows, @period())
date = date.startOf('month') if @period() in ['day', 'week']
{'arrow-hidden': !@currentDate.isWithinBoundaries(date)}



monthOptions: ->
minMonth = if @currentDate.minBoundary().isSame(@currentDate(), 'year') then @currentDate.minBoundary().month() else 0
maxMonth = if @currentDate.maxBoundary().isSame(@currentDate(), 'year') then @currentDate.maxBoundary().month() else 11
Expand Down

0 comments on commit bcc7e32

Please sign in to comment.