rebelstuff

Keep track of your stuff
git clone https://git.ce9e.org/rebelstuff.git

commit
0f8de167eb1bfaeabe298ace7ce1a1cd6c46c60b
parent
73deaf88e564679316cb6041222a41e5a2b43d5f
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2020-08-13 05:27
allow to toggle calendar row collapse on item

Diffstat

M rebelstuff/templates/rebelstuff/calendar.html 4 +++-

1 files changed, 3 insertions, 1 deletions


diff --git a/rebelstuff/templates/rebelstuff/calendar.html b/rebelstuff/templates/rebelstuff/calendar.html

@@ -30,18 +30,20 @@
   30    30         }
   31    31         .calendar-item {
   32    32             border: 1px solid;
   -1    33             cursor: pointer;
   33    34         }
   34    35         .calendar-button {
   35    36             background: none;
   36    37             border: 0;
   37    38             padding: 0;
   38    39             font: inherit;
   -1    40             cursor: pointer;
   39    41         }
   40    42     </style>
   41    43 
   42    44     <script>
   43    45         document.addEventListener('click', function(event) {
   44    -1             if (event.target.matches('.calendar-button')) {
   -1    46             if (event.target.matches('.calendar-button, .calendar-item')) {
   45    47                 var row = event.target.closest('.calendar-row');
   46    48                 row.classList.toggle('collapsed');
   47    49             }