luci-base: luci.js: emit custom events for tooltip open/close actions
authorJo-Philipp Wich <jo@mein.io>
Fri, 7 Dec 2018 16:57:45 +0000 (17:57 +0100)
committerJo-Philipp Wich <jo@mein.io>
Mon, 10 Dec 2018 12:41:34 +0000 (13:41 +0100)
commita7dcfbe06be893fa05fc1cfc675c774ff858e5d2
treece3acb65c949be1ef5b0efc22b32c366c35a1c58
parentdf9ba6981ee224ca37591469cf658db786b031b9
luci-base: luci.js: emit custom events for tooltip open/close actions

The new `tooltip-open` and `tooltip-close` events allow other code to hook
into the tooltip div rendering, e.g. to populate it with custom markup.

Also ignore tooltip events originating from descendant elements while
we're at it.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/htdocs/luci-static/resources/luci.js