html editor in books list

This commit is contained in:
Ozzie Isaacs
2021-10-19 19:10:40 +02:00
parent 9e4aeac16d
commit fe4db16a7e
7 changed files with 544 additions and 2 deletions

View File

@@ -459,6 +459,7 @@ def edit_book_series_index(series_index, book):
modif_date = True
return modif_date
# Handle book comments/description
def edit_book_comments(comments, book):
modif_date = False
@@ -1150,6 +1151,10 @@ def edit_list_book(param):
book.sort = vals['value']
ret = Response(json.dumps({'success': True, 'newValue': book.sort}),
mimetype='application/json')
elif param =='comments':
edit_book_comments(vals['value'], book)
ret = Response(json.dumps({'success': True, 'newValue': book.comments[0].text}),
mimetype='application/json')
elif param =='authors':
input_authors, __ = handle_author_on_edit(book, vals['value'], vals.get('checkA', None) == "true")
helper.update_dir_stucture(book.id, config.config_calibre_dir, input_authors[0])