Fix #2265 (add book to shelf on popup for book details)

Updated testresults
This commit is contained in:
Ozzie Isaacs
2022-01-17 17:46:57 +01:00
parent 01090169a7
commit de1bc3f9af
4 changed files with 148 additions and 245 deletions
+5 -2
View File
@@ -61,8 +61,11 @@ $("#archived_cb").on("change", function() {
$("#shelf-actions").on("click", "[data-shelf-action]", function (e) {
e.preventDefault();
$.post(this.href)
$.ajax({
url: this.href,
method:"post",
data: {csrf_token:$("input[name='csrf_token']").val()},
})
.done(function() {
var $this = $(this);
switch ($this.data("shelf-action")) {