custom fields: Remove unused code for custom fields.

It removes code related to custom profile field's placeholder styling
and related to numeric custom fields, as recently we removed support
for numeric custom fields.
This commit is contained in:
YJDave 2018-04-03 17:33:22 +05:30 committed by Tim Abbott
parent ecec489e7e
commit 8bc181882a
2 changed files with 0 additions and 20 deletions

View File

@ -313,11 +313,7 @@ exports.set_up = function () {
var value = $(this).val();
var spinner = $("#custom-field-status").expectOne();
loading.make_indicator(spinner, {text: 'Saving ...'});
if ($(this).attr("type") === "number") {
value = parseInt(value, 10);
}
fields.push({id: parseInt($(this).attr("id"), 10), value: value});
settings_ui.do_settings_change(channel.patch, "/json/users/me/profile_data",
{data: JSON.stringify(fields)}, spinner);
});

View File

@ -1260,28 +1260,12 @@ input[type=checkbox].inline-block {
height: 80px;
}
#settings_page .custom_user_field input[type=number]::-webkit-outer-spin-button,
#settings_page .custom_user_field input[type=number]::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}
#settings_page .custom_user_field input[type=number] {
-moz-appearance: textfield;
}
#settings_page #change_password_modal .change_password_info,
#settings_page #change_email_modal .change_email_info,
#settings_page #change_full_name_modal .change_full_name_info {
margin: 10px;
}
#account-settings .custom_user_field input::placeholder,
#account-settings .custom_user_field textarea::placeholder {
font-style: italic;
color: hsl(0, 0%, 66%);
}
#deactivation_user_modal.fade.in {
top: calc(50% - 120px);
}