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

View File

@ -204,7 +204,7 @@ $("#delete_confirm").click(function(event) {
var bookFormat = $(this).data("delete-format"); var bookFormat = $(this).data("delete-format");
var ajaxResponse = $(this).data("ajax"); var ajaxResponse = $(this).data("ajax");
if (bookFormat) { if (bookFormat) {
window.location.href = getPath() + "/delete/" + deleteId + "/" + bookFormat; postButton(event, getPath() + "/delete/" + deleteId + "/" + bookFormat);
} else { } else {
if (ajaxResponse) { if (ajaxResponse) {
path = getPath() + "/ajax/delete/" + deleteId; path = getPath() + "/ajax/delete/" + deleteId;