mirror of
https://github.com/grocy/grocy.git
synced 2026-04-06 21:06:15 +02:00
public mealplan: if mobile change view to agenda day
This commit is contained in:
parent
66571f662f
commit
c67a240779
|
|
@ -120,6 +120,9 @@ var calendar = $("#calendar").fullCalendar({
|
||||||
{
|
{
|
||||||
$("#calendar").fullCalendar("gotoDate", GetUriParam("week"));
|
$("#calendar").fullCalendar("gotoDate", GetUriParam("week"));
|
||||||
}
|
}
|
||||||
|
if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) {
|
||||||
|
$('#calendar').fullCalendar('changeView', 'agendaDay');
|
||||||
|
} //IF MOBILE CHANGE VIEW TO AGENDA DAY
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user