Fix #1930965 [[Enhancement - Server] Clicking Esc to go back to the book details page doesn't work after clicking on some metadata field in the Edit metadata page and going back to the Edit metadata page](https://bugs.launchpad.net/calibre/+bug/1930965)

This commit is contained in:
Kovid Goyal 2021-06-09 08:06:05 +05:30
parent cf2c096db0
commit 9d4e5c500f
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -1001,6 +1001,7 @@ def on_close(container_id):
clear(d), clear(d.previousSibling)
q = parse_url_params()
show_book(container_id, int(q.book_id))
c.querySelector(f'.{CLASS_NAME}').focus()
return
cq = get_current_query()
if cq.from_read_book: