mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 05:23:35 +00:00
Extract topic_list.update_count_in_dom().
This creates the new topic_list.js module, and the first function that we extract is topic_list.update_count_in_dom(). This function needed to be decoupled from some non-topic-list stuff which was overly complicated.
This commit is contained in:
@@ -362,8 +362,7 @@ exports.set_subject_count = function (stream, subject, count) {
|
||||
return;
|
||||
}
|
||||
|
||||
count_span.removeClass("zero_count");
|
||||
update_count_in_dom(count_span, value_span, count);
|
||||
topic_list.update_count_in_dom(count_span, value_span, count);
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user