Go home on error not back

This commit is contained in:
Kovid Goyal 2017-04-27 12:54:43 +05:30
parent 57d2e24961
commit 3c109d990e
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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