mirror of
https://github.com/discourse/discourse.git
synced 2025-03-23 02:25:40 +08:00
make eslint happy
This commit is contained in:
parent
0cc81f95a5
commit
943fdc1762
@ -12,7 +12,9 @@ export default {
|
|||||||
router.on("routeWillChange", hidePopover);
|
router.on("routeWillChange", hidePopover);
|
||||||
|
|
||||||
$("#main")
|
$("#main")
|
||||||
.on("click.d-popover mouseenter.d-popover", POPOVER_SELECTORS, e => showPopover(e))
|
.on("click.d-popover mouseenter.d-popover", POPOVER_SELECTORS, e =>
|
||||||
|
showPopover(e)
|
||||||
|
)
|
||||||
.on("mouseleave.d-popover", POPOVER_SELECTORS, e => hidePopover(e));
|
.on("mouseleave.d-popover", POPOVER_SELECTORS, e => hidePopover(e));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -16,7 +16,8 @@ const D_ARROW_HEIGHT = 10;
|
|||||||
|
|
||||||
const D_HORIZONTAL_MARGIN = 5;
|
const D_HORIZONTAL_MARGIN = 5;
|
||||||
|
|
||||||
export const POPOVER_SELECTORS = "[data-html-popover], [data-html-tooltip], [data-popover], [data-tooltip]";
|
export const POPOVER_SELECTORS =
|
||||||
|
"[data-html-popover], [data-html-tooltip], [data-popover], [data-tooltip]";
|
||||||
|
|
||||||
export function hidePopover() {
|
export function hidePopover() {
|
||||||
getPopover()
|
getPopover()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user