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:
Steve Howell
2016-10-26 16:02:41 -07:00
committed by Tim Abbott
parent 86e933a4a1
commit 4f38cfdc7f
4 changed files with 23 additions and 3 deletions

View File

@@ -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);
};