Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
user_profile: Remove obsolete button id used earlier to handle input.
Pratik Chanda5a654ef0cbd6
diff --git a/web/src/user_profile.ts b/web/src/user_profile.tsindex b2e4e8cce4b..11985688bca 100644--- a/web/src/user_profile.ts+++ b/web/src/user_profile.ts@@ -1446,28 +1446,6 @@ export function initialize(): void {add_user_to_groups(group_ids, user_id, $alert_box);});- $("body").on("click", "#user-profile-modal #clear_stream_search", (e) => {- const $input = $("#user-profile-streams-tab .stream-search");- $input.val("");-- // This is a hack to rerender complete- // stream list once the text is cleared.- $input.trigger("input");-- e.stopPropagation();- e.preventDefault();- });-- $("body").on("click", "#user-profile-modal #clear_groups_search", (e) => {- const $input = $("#user-profile-groups-tab .group-search");- $input.val("");-- $input.trigger("input");-- e.stopPropagation();- e.preventDefault();- });-$("body").on("click", "#user-profile-modal #name .user-profile-update-user-tab-button", (e) => {show_manage_user_tab("manage-profile-tab");e.stopPropagation();@@ -1491,24 +1469,6 @@ export function initialize(): void {hide_user_profile();});- $("body").on("input", "#user-profile-streams-tab .stream-search", () => {- const $input = $<HTMLInputElement>("#user-profile-streams-tab input.stream-search");- if ($input.val()!.trim().length > 0) {- $("#user-profile-streams-tab #clear_stream_search").show();- } else {- $("#user-profile-streams-tab #clear_stream_search").hide();- }- });-- $("body").on("input", "#user-profile-groups-tab .group-search", () => {- const $input = $<HTMLInputElement>("#user-profile-groups-tab input.group-search");- if ($input.val()!.trim().length > 0) {- $("#user-profile-groups-tab #clear_groups_search").show();- } else {- $("#user-profile-groups-tab #clear_groups_search").hide();- }- });-bot_helper.initialize_bot_click_handlers();new ClipboardJS(".copy-link-to-user-profile", {diff --git a/web/styles/popovers.css b/web/styles/popovers.cssindex 840ff47dde9..093929b5e9d 100644--- a/web/styles/popovers.css+++ b/web/styles/popovers.css@@ -600,11 +600,6 @@ ul.popover-group-menu-member-list {grid-area: top;margin-top: 0.3125em;margin-bottom: 0.75em;-- .group-search:placeholder-shown + #clear_groups_search,- .stream-search:placeholder-shown + #clear_stream_search {- visibility: hidden;- }}.group-list-container,diff --git a/web/templates/user_profile_modal.hbs b/web/templates/user_profile_modal.hbsindex 6bb31323d13..14484797242 100644--- a/web/templates/user_profile_modal.hbs+++ b/web/templates/user_profile_modal.hbs@@ -118,7 +118,7 @@<div class="stream-search-container filter-input has-input-icon has-input-button input-element-wrapper"><i class="input-icon zulip-icon zulip-icon-search" aria-hidden="true"></i><input type="text" class="input-element stream-search" placeholder="{{t 'Filter' }}" />- <button type="button" class="input-button input-close-filter-button icon-button icon-button-square icon-button-neutral " id="clear_stream_search">+ <button type="button" class="input-button input-close-filter-button icon-button icon-button-square icon-button-neutral"><i class="zulip-icon zulip-icon-close" aria-hidden="true"></i></button></div>@@ -147,7 +147,7 @@<div class="group-search-container filter-input has-input-icon has-input-button input-element-wrapper"><i class="input-icon zulip-icon zulip-icon-search"></i><input type="text" class="input-element group-search" placeholder="{{t 'Filter' }}" />- <button type="button" class="input-button input-close-filter-button icon-button icon-button-square icon-button-neutral " id="clear_groups_search">+ <button type="button" class="input-button input-close-filter-button icon-button icon-button-square icon-button-neutral"><i class="zulip-icon zulip-icon-close" aria-hidden="true"></i></button></div>