Content server: Fix various controls on the book details page not working when viewing a random book.

Fixes #1901232 [[Content server] Convert books on the Book details page does not work when you select a random book](https://bugs.launchpad.net/calibre/+bug/1901232)
Fixes #1901230 [[Content server] Arrows to browse books on the Book details page does not work when you select a random book](https://bugs.launchpad.net/calibre/+bug/1901230)
This commit is contained in:
Kovid Goyal 2020-10-24 06:41:50 +05:30
parent 3c7907b93c
commit 0a2829d41c
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -654,19 +654,19 @@ def init(container_id):
def show_subsequent_panel(name, replace=False):
q = parse_url_params()
q.book_id = (read_book.book_id or q.book_id) + ''
q.book_id = (render_book.book_id or q.book_id) + ''
show_panel('book_details^' + name, query=q, replace=replace)
def edit_metadata():
q = parse_url_params()
q.book_id = (read_book.book_id or q.book_id) + ''
q.book_id = (render_book.book_id or q.book_id) + ''
show_panel('edit_metadata', query=q, replace=False)
def convert_book():
q = parse_url_params()
q.book_id = (read_book.book_id or q.book_id) + ''
q.book_id = (render_book.book_id or q.book_id) + ''
show_panel('convert_book', query=q, replace=False)