settings_profile_fields: Rename btn -> button in JS variables.

This commit is a part of the efforts to rename btn-related classes
and variables to align with Zulip's no-abbreviations policy and
streamline the search results.
This commit is contained in:
Sayam Samal
2024-11-13 18:08:12 +05:30
committed by Tim Abbott
parent 4105fc4e77
commit 1cc66fbad4

View File

@@ -314,7 +314,7 @@ function delete_choice_row_for_edit(
field: CustomProfileField,
): void {
delete_choice_row(row);
disable_submit_btn_if_no_property_changed($profile_field_form, field);
disable_submit_button_if_no_property_changed($profile_field_form, field);
}
function show_modal_for_deleting_options(
@@ -384,7 +384,7 @@ function set_up_external_account_field_edit_form(
}
}
function disable_submit_btn_if_no_property_changed(
function disable_submit_button_if_no_property_changed(
$profile_field_form: JQuery,
field: CustomProfileField,
): void {
@@ -434,7 +434,7 @@ function set_up_select_field_edit_form(
filter: "input",
preventOnFilter: false,
onSort() {
disable_submit_btn_if_no_property_changed($profile_field_form, field);
disable_submit_button_if_no_property_changed($profile_field_form, field);
},
});
}
@@ -520,7 +520,7 @@ function open_edit_form_modal(this: HTMLElement): void {
// select field add/update/remove operations are covered in onSort and
// row delete button is separately covered in delete_choice_row_for_edit.
$profile_field_form.on("input", () => {
disable_submit_btn_if_no_property_changed($profile_field_form, field);
disable_submit_button_if_no_property_changed($profile_field_form, field);
});
}