mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-10 21:24:20 +01:00
change calendar default view to agendDay if screen width <= 480px
This commit is contained in:
parent
dd7f67116d
commit
0b053b11ed
@ -152,6 +152,7 @@ Application.Controllers.controller "CalendarController", ["$scope", "$state", "$
|
|||||||
right: 'today prev,next'
|
right: 'today prev,next'
|
||||||
minTime: moment.duration(moment(bookingWindowStart.setting.value).format('HH:mm:ss'))
|
minTime: moment.duration(moment(bookingWindowStart.setting.value).format('HH:mm:ss'))
|
||||||
maxTime: moment.duration(moment(bookingWindowEnd.setting.value).format('HH:mm:ss'))
|
maxTime: moment.duration(moment(bookingWindowEnd.setting.value).format('HH:mm:ss'))
|
||||||
|
defaultView: if window.innerWidth <= 480 then 'agendaDay' else 'agendaWeek'
|
||||||
eventClick: (event, jsEvent, view)->
|
eventClick: (event, jsEvent, view)->
|
||||||
calendarEventClickCb(event, jsEvent, view)
|
calendarEventClickCb(event, jsEvent, view)
|
||||||
viewRender: (view, element) ->
|
viewRender: (view, element) ->
|
||||||
|
Loading…
Reference in New Issue
Block a user