Swap modals with innerHTML

This commit is contained in:
2022-10-29 14:24:09 +01:00
parent 31a77e88ad
commit 2a876a20ba
6 changed files with 7 additions and 1 deletions

View File

@@ -25,7 +25,8 @@
hx-headers='{"X-CSRFToken": "{{ csrf_token }}"}'
hx-get="{% url 'hook_update' type=type pk=item.hook.id %}"
hx-trigger="click"
hx-target="#{{ type }}s-here">{{ item.hook.name }}
hx-target="#{{ type }}s-here"
hx-swap="innerHTML">{{ item.hook.name }}
</a>
</td>
<td>{{ item.title }}</td>