From 8ffaa6ecd261ecb18fae21bb335a05a4de2ec8fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jochen=20Wersd=C3=B6rfer?= Date: Tue, 11 Jun 2024 22:45:40 +0200 Subject: [PATCH] #147 fix broken podlovePlayer after htmx pagination by embedding the api url into audio element and listening for after:swap pagination area --- cast/templates/cast/audio/audio.html | 7 ++++- .../cast/bootstrap4/blog_list_of_posts.html | 27 ++++++++++++++----- 2 files changed, 26 insertions(+), 8 deletions(-) diff --git a/cast/templates/cast/audio/audio.html b/cast/templates/cast/audio/audio.html index d0b3ab18..a69a6058 100644 --- a/cast/templates/cast/audio/audio.html +++ b/cast/templates/cast/audio/audio.html @@ -1 +1,6 @@ -
+
+
diff --git a/cast/templates/cast/bootstrap4/blog_list_of_posts.html b/cast/templates/cast/bootstrap4/blog_list_of_posts.html index b7e7ab83..f423a671 100644 --- a/cast/templates/cast/bootstrap4/blog_list_of_posts.html +++ b/cast/templates/cast/bootstrap4/blog_list_of_posts.html @@ -96,12 +96,25 @@
{% if use_audio_player %} - {% for post in posts %} - {% for pk, audio in post.media_lookup.audio.items %} - - {% endfor %} - {% endfor %} + {% endif %} {% endblock javascript %}