Fixes in event handling

This commit is contained in:
2026-04-09 14:50:28 +02:00
parent 4fe0b41335
commit 377e73a491
5 changed files with 17 additions and 23 deletions

View File

@@ -1,4 +1,7 @@
{% extends "website/base.html" %} {% load sekizai_tags static %} {% load crispy_forms_tags %} {% block content %} {{ form.media }}
{% extends "website/base.html" %} {% load sekizai_tags static %} {% load crispy_forms_tags %}
{% block content %}
{% addtoblock "css" %}{% for item in form.media.render_css %}{{ item }}{% endfor %}{% endaddtoblock %}
{% addtoblock "js" %}{% for item in form.media.render_js %}{{ item }}{% endfor %}{% endaddtoblock %}
<div class="container">
<div class="row">

View File

@@ -116,7 +116,7 @@
$( ".deleteButton" ).click(function() {
if (confirm('Termin wirklich löschen?')) {
pk = $(this).data( "pk" )
window.location = pk + "/delete"
window.location = "/events/delete/" + pk + "/"
}
});