profile-settings: Change name-input class to a more specific id.

Changes `name-input` class, that was only being used in a div
wrapper for the input element for changing a user's full name,
to be a more specific id name: `full_name_input_container`.

This id is used to set or remove the disabled setting tooltip
when name changes are disabled by the organization.

There are no CSS rules set with this class/id.
This commit is contained in:
Lauryn Menard
2023-01-25 19:13:27 +01:00
committed by Tim Abbott
parent 264a34d543
commit d8b8b34ecd
4 changed files with 9 additions and 9 deletions

View File

@@ -57,10 +57,10 @@ export function update_name_change_display() {
if (!settings_data.user_can_change_name()) {
$("#full_name").prop("disabled", true);
$(".name-input").addClass("name_changes_disabled_tooltip");
$("#full_name_input_container").addClass("name_changes_disabled_tooltip");
} else {
$("#full_name").prop("disabled", false);
$(".name-input").removeClass("name_changes_disabled_tooltip");
$("#full_name_input_container").removeClass("name_changes_disabled_tooltip");
}
}