streams_filter_icon: Convert from id to class.

This will allow us repeat the class which we cannot do with id.
This commit is contained in:
Aman Agrawal 2020-10-05 20:17:58 +05:30 committed by Tim Abbott
parent d666b465b9
commit 637c7e297c
3 changed files with 3 additions and 3 deletions

View File

@ -694,7 +694,7 @@ export function initialize() {
browser_history.go_to_location("streams/subscribed");
});
$("#streams_filter_icon").on("click", (e) => {
$(".streams_filter_icon").on("click", (e) => {
e.stopPropagation();
stream_list.toggle_filter_displayed(e);
});

View File

@ -56,7 +56,7 @@ li.show-more-topics {
}
#streams_inline_cog,
#streams_filter_icon {
.streams_filter_icon {
float: right;
opacity: 0.5;
font-size: 13px;

View File

@ -61,7 +61,7 @@
<div id="streams_list" class="zoom-out">
<div id="streams_header" class="zoom-in-hide"><h4 class="sidebar-title tippy-zulip-tooltip" data-tippy-content="{{ _('Filter streams') }} (q)">{{ _('STREAMS') }}</h4>
<i id="streams_inline_cog" class='fa fa-cog tippy-zulip-tooltip' aria-hidden="true" data-tippy-content="{{ _('Subscribe, add, or configure streams') }}"></i>
<i id="streams_filter_icon" class='fa fa-search tippy-zulip-tooltip' aria-hidden="true" data-tippy-content="{{ _('Filter streams') }} (q)"></i>
<i class="streams_filter_icon" class='fa fa-search tippy-zulip-tooltip' aria-hidden="true" data-tippy-content="{{ _('Filter streams') }} (q)"></i>
<div class="input-append notdisplayed stream_search_section">
<input class="stream-list-filter home-page-input" type="text" autocomplete="off" placeholder="{{ _('Filter streams') }}" />
<button type="button" class="btn clear_search_button" id="clear_search_stream_button">