diff options
author | Mario <mario@mariovavti.com> | 2024-11-21 09:36:31 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2024-11-21 09:36:31 +0000 |
commit | f7a9b84943544e8a24cf5ead40e2fd04b63ab210 (patch) | |
tree | d93cd0b055c6e57b486f5d1db8d958262b308dff /view/tpl | |
parent | 46e66001694fdbddd3972432ddc062e7f618b0a7 (diff) | |
download | volse-hubzilla-f7a9b84943544e8a24cf5ead40e2fd04b63ab210.tar.gz volse-hubzilla-f7a9b84943544e8a24cf5ead40e2fd04b63ab210.tar.bz2 volse-hubzilla-f7a9b84943544e8a24cf5ead40e2fd04b63ab210.zip |
Diffstat (limited to 'view/tpl')
-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'; |