mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-01-01 09:40:21 -05:00
Content server: Fix an error when editing a book's metadata to change both the cover and another field. Fixes #2117412 [Error when editing Cover and adding book info on web interface tool in safari and chrome](https://bugs.launchpad.net/calibre/+bug/2117412)
This commit is contained in:
parent
5284fb6fb1
commit
4152fda2a2
@ -969,7 +969,7 @@ def render_metadata(mi, table, container_id, book_id): # {{{
|
||||
if changes.cover is '--remove--':
|
||||
img.removeAttribute('src')
|
||||
changes.cover = None
|
||||
else:
|
||||
elif jstype(changes.cover) is not 'string':
|
||||
r = FileReader()
|
||||
r.onload = def(evt):
|
||||
img.src = evt.target.result
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user