Fix dismissal of finished jobs
This commit is contained in:
parent
5d142034ae
commit
39646647d3
2 changed files with 5 additions and 1 deletions
|
@ -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,
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue