aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2024-11-21 09:36:31 +0000
committerMario <mario@mariovavti.com>2024-11-21 09:36:31 +0000
commitf7a9b84943544e8a24cf5ead40e2fd04b63ab210 (patch)
treed93cd0b055c6e57b486f5d1db8d958262b308dff /view/tpl
parent46e66001694fdbddd3972432ddc062e7f618b0a7 (diff)
downloadvolse-hubzilla-f7a9b84943544e8a24cf5ead40e2fd04b63ab210.tar.gz
volse-hubzilla-f7a9b84943544e8a24cf5ead40e2fd04b63ab210.tar.bz2
volse-hubzilla-f7a9b84943544e8a24cf5ead40e2fd04b63ab210.zip
mod cal: if a day is provided default to week view except the date has a ! prependedHEADdev
Diffstat (limited to 'view/tpl')
-rw-r--r--view/tpl/cal_calendar.tpl12
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';