Fix delete book format wasn't working

This commit is contained in:
Ozzie Isaacs 2022-01-22 14:01:32 +01:00
parent 81b85445d8
commit bbef41290f
1 changed files with 1 additions and 1 deletions

View File

@ -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;