1
0
mirror of https://github.com/janeczku/calibre-web synced 2025-10-17 16:47:39 +00:00

fix author sort not updating when bulk editing

This commit is contained in:
James Armstrong
2024-09-17 12:26:35 -07:00
parent 31380f2af9
commit 338441f116
2 changed files with 3 additions and 0 deletions

View File

@@ -231,12 +231,14 @@ def edit_selected_books():
languages = d.get('languages')
publishers = d.get('publishers')
comments = d.get('comments')
checkA = d.get('checkA')
if len(selections) != 0:
for book_id in selections:
vals = {
"pk": book_id,
"value": None,
"checkA": checkA,
}
if title:
vals['value'] = title

View File

@@ -219,6 +219,7 @@ $(function() {
"languages": $("#languages_input").val(),
"publishers": $("#publishers_input").val(),
"comments": $("#comments_input").val().toString(),
"checkA": $('#autoupdate_authorsort').prop('checked').toString()
}),
success: function success(booTitles) {
$("#books-table").bootstrapTable("refresh");