Change #name_change_container to class.

This changes the selector #name_change_container to a class because
there should never be more than one of an ID.
This commit is contained in:
Brock Whittaker 2016-12-29 13:06:10 -08:00 committed by Tim Abbott
parent 52c18e9c9d
commit a9e49338de
3 changed files with 3 additions and 3 deletions

View File

@ -550,7 +550,7 @@ function _setup_page() {
avatar.build_user_avatar_widget(upload_avatar); avatar.build_user_avatar_widget(upload_avatar);
if (page_params.name_changes_disabled) { if (page_params.name_changes_disabled) {
$("#name_change_container").hide(); $(".name_change_container").hide();
} }

View File

@ -48,7 +48,7 @@
<td colspan="{{#if is_bot}}4{{else}}3{{/if}}"> <td colspan="{{#if is_bot}}4{{else}}3{{/if}}">
<form class="form-horizontal name-setting"> <form class="form-horizontal name-setting">
<input type="hidden" name="is_full_name" value="true" /> <input type="hidden" name="is_full_name" value="true" />
<div class="input-group" id="name_change_container"> <div class="input-group name_change_container">
<label for="full_name">{{t "Full name" }}</label> <label for="full_name">{{t "Full name" }}</label>
<input type="text" name="full_name" id="full_name" value="{{ full_name }}" /> <input type="text" name="full_name" id="full_name" value="{{ full_name }}" />
</div> </div>

View File

@ -6,7 +6,7 @@
<div class="account-settings-form"> <div class="account-settings-form">
<form action="/json/settings/change" method="post" <form action="/json/settings/change" method="post"
class="form-horizontal your-account-settings"> class="form-horizontal your-account-settings">
<div class="input-group" id="name_change_container"> <div class="input-group name_change_container">
<label for="full_name">{{t "Full name" }}</label> <label for="full_name">{{t "Full name" }}</label>
<input type="text" name="full_name" id="full_name" value="{{ page_params.fullname }}" /> <input type="text" name="full_name" id="full_name" value="{{ page_params.fullname }}" />
</div> </div>