mirror of https://github.com/zulip/zulip.git
compose: Add option to specify container for appending banners.
This commit is contained in:
parent
d96fac2b59
commit
3b35307c20
|
@ -51,10 +51,14 @@ export const CLASSNAMES = {
|
|||
user_not_subscribed: "user_not_subscribed",
|
||||
};
|
||||
|
||||
// This function provides a convenient way to add new elements
|
||||
// to a banner container. The function accepts a container element
|
||||
// as a parameter, to which a banner should be appended.
|
||||
export function append_compose_banner_to_banner_list(
|
||||
new_row: HTMLElement | JQuery.htmlString,
|
||||
banner: HTMLElement | JQuery.htmlString,
|
||||
$list_container: JQuery,
|
||||
): void {
|
||||
scroll_util.get_content_element($("#compose_banners")).append(new_row);
|
||||
scroll_util.get_content_element($list_container).append(banner);
|
||||
}
|
||||
|
||||
export function clear_message_sent_banners(include_unmute_banner = true): void {
|
||||
|
|
Loading…
Reference in New Issue