Fixes in event handling
This commit is contained in:
@@ -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">
|
||||
|
||||
@@ -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 + "/"
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user