settings_org: Move *_widget definitions before uses.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2021-02-27 16:38:10 -08:00 committed by Tim Abbott
parent 45178e7fed
commit b5dbe259a8
1 changed files with 4 additions and 4 deletions

View File

@ -382,6 +382,10 @@ function update_dependent_subsettings(property_name) {
}
}
exports.default_code_language_widget = null;
exports.notifications_stream_widget = null;
exports.signup_notifications_stream_widget = null;
function discard_property_element_changes(elem) {
elem = $(elem);
const property_name = exports.extract_property_name(elem);
@ -592,10 +596,6 @@ exports.save_discard_widget_status_handler = (subsection) => {
exports.change_save_button_state(save_btn_controls, button_state);
};
exports.default_code_language_widget = null;
exports.notifications_stream_widget = null;
exports.signup_notifications_stream_widget = null;
exports.init_dropdown_widgets = () => {
const streams = stream_data.get_streams_for_settings_page();
const notification_stream_options = {