1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-01 12:24:28 +01:00

change calendar default view to agendDay if screen width <= 480px

This commit is contained in:
Peng DU 2016-07-18 18:10:39 +02:00
parent dd7f67116d
commit 0b053b11ed

View File

@ -152,6 +152,7 @@ Application.Controllers.controller "CalendarController", ["$scope", "$state", "$
right: 'today prev,next'
minTime: moment.duration(moment(bookingWindowStart.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)->
calendarEventClickCb(event, jsEvent, view)
viewRender: (view, element) ->