Collapse subject list when narrowing to PMs or @-mentions.

Previously, we would only collapse the old subject list if
the new narrow had a stream operator.

(imported from commit 664f984d932d0968a9b901f2a09272e11138843d)
This commit is contained in:
Steve Howell 2013-06-07 14:27:09 -04:00
parent 0087ad1131
commit 0c8ede3bc5
1 changed files with 1 additions and 1 deletions

View File

@ -144,7 +144,6 @@ exports.remove_all_narrow_filters = function () {
};
function rebuild_recent_subjects(stream, subject) {
$('.expanded_subjects').remove();
var stream_li = get_filter_li('stream', stream);
var subjects = recent_subjects[stream] || [];
var active_orig_subject = subject;
@ -249,6 +248,7 @@ exports.update_dom_with_unread_counts = function (counts) {
$(function () {
$(document).on('narrow_activated.zephyr', function (event) {
$("ul.filters li").removeClass('active-filter active-subject-filter');
$('.expanded_subjects').remove();
// TODO: handle confused filters like "in:all stream:foo"
var op_in = event.filter.operands('in');