Fix incorrect titles on book list prefs panels

This commit is contained in:
Kovid Goyal 2020-02-29 11:10:27 +05:30
parent 0f8c8d71a1
commit 3453380fe0
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -232,8 +232,10 @@ def prefs_panel_handler(title, get_prefs_data, on_close=None, icon='close'):
on_close() on_close()
back() back()
return def init_prefs_panel(container_id): # noqa:unused-local def init_prefs_panel(container_id):
container = document.getElementById(container_id) container = document.getElementById(container_id)
create_top_bar(container, title, action=close_action, icon=icon) create_top_bar(container, title=title, action=close_action, icon=icon)
container.appendChild(E.div()) container.appendChild(E.div())
create_prefs_widget(container.lastChild, get_prefs_data()) create_prefs_widget(container.lastChild, get_prefs_data())
return init_prefs_panel