mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-02-20 14:54:15 +01:00
fix bug cant navigate to yestoday in agendaDay view
This commit is contained in:
parent
49ee5011c1
commit
2b08cc8594
@ -52,7 +52,7 @@ Application.Controllers.controller "CalendarController", ["$scope", "$state", "$
|
|||||||
# set defaultView, because when we change slotEventOverlap
|
# set defaultView, because when we change slotEventOverlap
|
||||||
# ui-calendar will trigger rerender calendar
|
# ui-calendar will trigger rerender calendar
|
||||||
$scope.calendarConfig.defaultView = view.type
|
$scope.calendarConfig.defaultView = view.type
|
||||||
today = moment().startOf('day')
|
today = moment().utc().startOf('day')
|
||||||
if today > view.start and today <= view.end and today != view.start
|
if today > view.start and today <= view.end and today != view.start
|
||||||
$scope.calendarConfig.defaultDate = today
|
$scope.calendarConfig.defaultDate = today
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user