diff --git a/src/pix360core/static/js/worker.js b/src/pix360core/static/js/worker.js index 1f45266..3086428 100644 --- a/src/pix360core/static/js/worker.js +++ b/src/pix360core/static/js/worker.js @@ -21,6 +21,10 @@ function unlockform() { function deletecard(jobid) { if ($("#" + jobid).length) { $("#" + jobid).remove(); + $.ajax({ + type: "GET", + url: "/delete/" + jobid, + }); } } diff --git a/src/pix360core/views.py b/src/pix360core/views.py index 0ff68eb..b82125d 100644 --- a/src/pix360core/views.py +++ b/src/pix360core/views.py @@ -118,7 +118,7 @@ class ConversionListView(LoginRequiredMixin, View): class ConversionDeleteView(LoginRequiredMixin, View): """View for deleting a conversion """ - def post(self, request, *args, **kwargs): + def get(self, request, *args, **kwargs): """Handle the POST request """ conversion = Conversion.objects.filter(id=kwargs['id']).first()