.
This commit is contained in:
@@ -31,6 +31,7 @@
|
|||||||
$("tbody input:checked").each((n, el) => {
|
$("tbody input:checked").each((n, el) => {
|
||||||
answer_ids.push(el.value);
|
answer_ids.push(el.value);
|
||||||
})
|
})
|
||||||
|
if (confirm(`Delete ${answer_ids.length} answers?`)) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: "{% url 'longs:user_answer_delete_multiple' %}",
|
url: "{% url 'longs:user_answer_delete_multiple' %}",
|
||||||
data: {
|
data: {
|
||||||
@@ -53,6 +54,7 @@
|
|||||||
.always(function () {
|
.always(function () {
|
||||||
console.log('[Done]');
|
console.log('[Done]');
|
||||||
})
|
})
|
||||||
|
}
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user