diff --git a/cps/static/js/main.js b/cps/static/js/main.js index cf5a4327..b10f0f98 100755 --- a/cps/static/js/main.js +++ b/cps/static/js/main.js @@ -204,7 +204,7 @@ $("#delete_confirm").click(function(event) { var bookFormat = $(this).data("delete-format"); var ajaxResponse = $(this).data("ajax"); if (bookFormat) { - window.location.href = getPath() + "/delete/" + deleteId + "/" + bookFormat; + postButton(event, getPath() + "/delete/" + deleteId + "/" + bookFormat); } else { if (ajaxResponse) { path = getPath() + "/ajax/delete/" + deleteId;