static: Move click handlers for alert-box to a separate module.

ui_init is also modified to ensure that the click handlers will still
be correctly initialized.
This commit is contained in:
PIG208
2021-03-26 03:34:51 +08:00
committed by Tim Abbott
parent ba14168d57
commit 36e90195e0
4 changed files with 19 additions and 13 deletions

View File

@@ -8,6 +8,7 @@ import * as fenced_code from "../shared/js/fenced_code";
import render_edit_content_button from "../templates/edit_content_button.hbs";
import * as activity from "./activity";
import * as alert_popup from "./alert_popup";
import * as alert_words from "./alert_words";
import * as blueslip from "./blueslip";
import * as bot_data from "./bot_data";
@@ -473,6 +474,7 @@ export function initialize_everything() {
const user_status_params = pop_fields("user_status");
alert_popup.initialize();
alert_words.initialize(alert_words_params);
emojisets.initialize();
people.initialize(page_params.user_id, people_params);