mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-06 20:39:39 +01:00
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:
parent
3c7907b93c
commit
0a2829d41c
1 changed files with 3 additions and 3 deletions
|
|
@ -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)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue