Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

custom_profile_fields: Remove unused mouseenter handler for date field

sandeep8c42f11bc96d
diff --git a/web/src/custom_profile_fields_ui.ts b/web/src/custom_profile_fields_ui.ts
index ed7f2bd6318..73538fbbaf5 100644
--- a/web/src/custom_profile_fields_ui.ts
+++ b/web/src/custom_profile_fields_ui.ts
@@ -375,16 +375,6 @@ export function initialize_custom_date_type_fields(
$(this).closest(".custom_user_field").find("input.datepicker").trigger("click");
});
- $(element_id)
- .find<HTMLInputElement>(".custom_user_field input.datepicker")
- .on("mouseenter", function () {
- if ($(this).val()!.length <= 0) {
- $(this).parent().find(".remove_date").hide();
- } else {
- $(this).parent().find(".remove_date").show();
- }
- });
-
$(element_id)
.find(".custom_user_field .remove_date")
.on("click", function () {