Fix dismissal of finished jobs

This commit is contained in:
Kumi 2023-10-27 20:39:03 +02:00
parent 5d142034ae
commit 39646647d3
Signed by: kumi
GPG key ID: ECBCC9082395383F
2 changed files with 5 additions and 1 deletions

View file

@ -21,6 +21,10 @@ function unlockform() {
function deletecard(jobid) { function deletecard(jobid) {
if ($("#" + jobid).length) { if ($("#" + jobid).length) {
$("#" + jobid).remove(); $("#" + jobid).remove();
$.ajax({
type: "GET",
url: "/delete/" + jobid,
});
} }
} }

View file

@ -118,7 +118,7 @@ class ConversionListView(LoginRequiredMixin, View):
class ConversionDeleteView(LoginRequiredMixin, View): class ConversionDeleteView(LoginRequiredMixin, View):
"""View for deleting a conversion """View for deleting a conversion
""" """
def post(self, request, *args, **kwargs): def get(self, request, *args, **kwargs):
"""Handle the POST request """Handle the POST request
""" """
conversion = Conversion.objects.filter(id=kwargs['id']).first() conversion = Conversion.objects.filter(id=kwargs['id']).first()