mirror of
https://github.com/zulip/zulip.git
synced 2025-11-12 01:47:41 +00:00
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:
committed by
Tim Abbott
parent
264a34d543
commit
d8b8b34ecd
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user