mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Also set this as event for title_action to match action
This commit is contained in:
parent
92d9c9055d
commit
abbed6e40c
@ -78,7 +78,10 @@ def set_left_data(container, title='calibre', icon='heart', action=None, tooltip
|
|||||||
|
|
||||||
if callable(title_action):
|
if callable(title_action):
|
||||||
a = a.nextSibling
|
a = a.nextSibling
|
||||||
a.addEventListener('click', def(event): event.preventDefault(), title_action();)
|
a.addEventListener('click', def(event):
|
||||||
|
event.preventDefault()
|
||||||
|
title_action.bind(event)()
|
||||||
|
)
|
||||||
|
|
||||||
def set_title(container, text):
|
def set_title(container, text):
|
||||||
bars = get_bars(container)
|
bars = get_bars(container)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user