Refresh calendar when closing workout modal
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
<a hx-get="{{ url_for('get_calendar', person_id=person['PersonId']) }}" hx-target="#container"
|
||||||
|
hx-vals='{"date": "{{ selected_date }}", "view": "{{ selected_view }}"}' hx-trigger="refreshView"
|
||||||
|
id="refreshViewElement"></a>
|
||||||
|
|
||||||
<div class="flex flex-grow flex-col bg-white sm:rounded shadow overflow-hidden">
|
<div class="flex flex-grow flex-col bg-white sm:rounded shadow overflow-hidden">
|
||||||
<div class="">
|
<div class="">
|
||||||
<div class="flex items-center justify-between pt-2 pb-2">
|
<div class="flex items-center justify-between pt-2 pb-2">
|
||||||
|
|||||||
@@ -2,7 +2,8 @@
|
|||||||
add .closing
|
add .closing
|
||||||
then wait for animationend
|
then wait for animationend
|
||||||
then remove me
|
then remove me
|
||||||
then toggle .hide-scrollbar on document.body'>
|
then toggle .hide-scrollbar on document.body
|
||||||
|
then send refreshView to #refreshViewElement'>
|
||||||
<div class='modal-underlay' _='on click trigger closeModal'></div>
|
<div class='modal-underlay' _='on click trigger closeModal'></div>
|
||||||
<div class='modal-content' _='init toggle .hide-scrollbar on document.body'>
|
<div class='modal-content' _='init toggle .hide-scrollbar on document.body'>
|
||||||
<div class="relative w-full h-full max-w-2xl md:h-auto">
|
<div class="relative w-full h-full max-w-2xl md:h-auto">
|
||||||
|
|||||||
Reference in New Issue
Block a user