mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Go home on error not back
This commit is contained in:
parent
57d2e24961
commit
3c109d990e
@ -14,7 +14,7 @@ from date import format_date
|
||||
from session import get_interface_data
|
||||
from utils import fmt_sidx, parse_url_params, conditional_timeout
|
||||
|
||||
from book_list.router import back, open_book
|
||||
from book_list.router import back, open_book, home
|
||||
from book_list.library_data import book_metadata, cover_url, set_book_metadata, current_library_id, library_data, download_url, load_status, current_virtual_library
|
||||
from book_list.top_bar import create_top_bar, set_title, add_button
|
||||
from book_list.ui import set_panel_handler
|
||||
@ -442,7 +442,7 @@ def check_for_books_loaded():
|
||||
err,
|
||||
E.div(
|
||||
style='margin-top: 1em; border-top: solid 1px currentColor; padding-top: 1ex;',
|
||||
E.a(onclick=back, href='javascript: void(0)', style='color: blue', _('Go back to the home page')))
|
||||
E.a(onclick=def(): home();, href='javascript: void(0)', style='color: blue', _('Go back to the home page')))
|
||||
),
|
||||
)
|
||||
return
|
||||
|
Loading…
x
Reference in New Issue
Block a user