mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix go back to book details page on error link not working
This commit is contained in:
parent
c9741c75e2
commit
96f9365ca1
@ -4,11 +4,11 @@
|
|||||||
from __python__ import hash_literals
|
from __python__ import hash_literals
|
||||||
|
|
||||||
import traceback
|
import traceback
|
||||||
from ajax import ajax, encode_query
|
from ajax import ajax
|
||||||
from elementmaker import E
|
from elementmaker import E
|
||||||
from gettext import gettext as _
|
from gettext import gettext as _
|
||||||
from modals import error_dialog
|
from modals import error_dialog
|
||||||
from utils import human_readable, debounce
|
from utils import human_readable, debounce, encode_query_with_path
|
||||||
|
|
||||||
from book_list.constants import read_book_container_id
|
from book_list.constants import read_book_container_id
|
||||||
from read_book.db import get_db
|
from read_book.db import get_db
|
||||||
@ -73,11 +73,11 @@ class ReadUI:
|
|||||||
error_dialog(title, msg, details)
|
error_dialog(title, msg, details)
|
||||||
a = div.lastChild.firstChild
|
a = div.lastChild.firstChild
|
||||||
if self.current_book_id:
|
if self.current_book_id:
|
||||||
a.setAttribute('href', encode_query({
|
a.setAttribute('href', encode_query_with_path({
|
||||||
'library_id':current_library_id(),
|
'library_id':current_library_id(),
|
||||||
'vl': current_virtual_library(),
|
'vl': current_virtual_library(),
|
||||||
'book-id': (self.current_book_id + ''),
|
'book_id': (self.current_book_id + ''),
|
||||||
'panel':'book-details'
|
'panel':'book_details'
|
||||||
}))
|
}))
|
||||||
a.textContent = _(
|
a.textContent = _(
|
||||||
'Click to go back to the details page for: {}').format(self.current_metadata.title)
|
'Click to go back to the details page for: {}').format(self.current_metadata.title)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user