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:
@@ -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
|
||||
|
@@ -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");
|
||||
|
Reference in New Issue
Block a user