diff options
-rw-r--r-- | view/tpl/cal_calendar.tpl | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/view/tpl/cal_calendar.tpl b/view/tpl/cal_calendar.tpl index 2e1699f1c..f120f9f80 100644 --- a/view/tpl/cal_calendar.tpl +++ b/view/tpl/cal_calendar.tpl @@ -41,15 +41,17 @@ $(document).ready(function() { if (fragment) { switch (fragment.length) { - // this might have performance issues - // case 4: - // view = 'multiMonthYear'; - // break; case 7: view = 'dayGridMonth'; break; case 10: - view = 'timeGridDay'; + view = 'timeGridWeek'; + break; + case 11: + if (fragment[0] === '!') { + fragment = fragment.substring(1); + view = 'timeGridDay'; + } break; default: view = 'dayGridMonth'; |