diff --git a/longs/templates/longs/user_answer_question_view.html b/longs/templates/longs/user_answer_question_view.html index a66559ba..ef420954 100644 --- a/longs/templates/longs/user_answer_question_view.html +++ b/longs/templates/longs/user_answer_question_view.html @@ -31,6 +31,7 @@ $("tbody input:checked").each((n, el) => { answer_ids.push(el.value); }) + if (confirm(`Delete ${answer_ids.length} answers?`)) { $.ajax({ url: "{% url 'longs:user_answer_delete_multiple' %}", data: { @@ -53,6 +54,7 @@ .always(function () { console.log('[Done]'); }) + } }) });