From 8e86a0dcafdecac4278e1a7ca7ad18f998d94fab Mon Sep 17 00:00:00 2001 From: Peter Stockings Date: Mon, 24 Jul 2023 10:44:57 +1000 Subject: [PATCH] Clear form when adding topset on workout modal --- templates/partials/workout_modal.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/templates/partials/workout_modal.html b/templates/partials/workout_modal.html index fa31e32..d8f28df 100644 --- a/templates/partials/workout_modal.html +++ b/templates/partials/workout_modal.html @@ -85,8 +85,12 @@
+ hx-swap="beforeend" hx-target="#new-workout" _="on htmx:afterOnLoad if #no-workouts add .hidden to #no-workouts end + on htmx:afterRequest + js + displayNotification('Topset added') + end + then reset() me">