From bbef41290fbfab94f16325cfadac03a3e7624ad7 Mon Sep 17 00:00:00 2001 From: Ozzie Isaacs Date: Sat, 22 Jan 2022 14:01:32 +0100 Subject: [PATCH] Fix delete book format wasn't working --- cps/static/js/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;