mirror of https://github.com/zulip/zulip.git
tippyjs: Combine "delegate" functions with same functionality.
This commits combines two different "delegate" functions that provide identical functionality by combining values of the "target" array in the function.
This commit is contained in:
parent
2b358dc980
commit
be9fbff5cd
|
@ -253,6 +253,7 @@ export function initialize() {
|
||||||
"#scroll-to-bottom-button-clickable-area",
|
"#scroll-to-bottom-button-clickable-area",
|
||||||
".code_external_link",
|
".code_external_link",
|
||||||
".spectator_narrow_login_button",
|
".spectator_narrow_login_button",
|
||||||
|
"#stream-specific-notify-table .unmute_stream",
|
||||||
],
|
],
|
||||||
appendTo: () => document.body,
|
appendTo: () => document.body,
|
||||||
});
|
});
|
||||||
|
@ -266,11 +267,6 @@ export function initialize() {
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
delegate("body", {
|
|
||||||
target: "#stream-specific-notify-table .unmute_stream",
|
|
||||||
appendTo: () => document.body,
|
|
||||||
});
|
|
||||||
|
|
||||||
delegate("body", {
|
delegate("body", {
|
||||||
target: [
|
target: [
|
||||||
".rendered_markdown .copy_codeblock",
|
".rendered_markdown .copy_codeblock",
|
||||||
|
|
Loading…
Reference in New Issue