mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 05:23:35 +00:00
Move remove_expanded_topics() to topic_list.js.
This commit is contained in:
@@ -204,11 +204,6 @@ function zoom_out() {
|
||||
$("#stream_filters li.narrow-filter").show();
|
||||
}
|
||||
|
||||
function remove_expanded_topics() {
|
||||
popovers.hide_topic_sidebar_popover();
|
||||
$("ul.expanded_subjects").remove();
|
||||
}
|
||||
|
||||
function remove_expanded_private_messages() {
|
||||
popovers.hide_topic_sidebar_popover();
|
||||
$("ul.expanded_private_messages").remove();
|
||||
@@ -222,7 +217,7 @@ function reset_to_unnarrowed(narrowed_within_same_stream) {
|
||||
|
||||
private_messages_open = false;
|
||||
$("ul.filters li").removeClass('active-filter active-sub-filter');
|
||||
remove_expanded_topics();
|
||||
topic_list.remove_expanded_topics();
|
||||
remove_expanded_private_messages();
|
||||
}
|
||||
|
||||
@@ -444,7 +439,7 @@ exports._build_private_messages_list = function (active_conversation, max_privat
|
||||
function rebuild_recent_topics(stream, active_topic) {
|
||||
// TODO: Call rebuild_recent_topics less, not on every new
|
||||
// message.
|
||||
remove_expanded_topics();
|
||||
topic_list.remove_expanded_topics();
|
||||
var max_subjects = 5;
|
||||
var stream_li = get_filter_li('stream', stream);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user