Set sidebar_li attribute when updating stream colors

Before, sidebar_li, used in rebuilding the streams list
during a sort, was set to some HTML rendered from a template.
Now it's set to a jquery object that is updated when the DOM is
updated.

This resolves Trac #1310

(imported from commit ba96d9da4deebf2f674f2c093e81b3f0032a3fe4)
This commit is contained in:
acrefoot 2013-06-12 12:03:16 -04:00
parent c97ce3a082
commit 9e8b997508
1 changed files with 1 additions and 1 deletions

View File

@ -95,7 +95,7 @@ function add_narrow_filter(name, type) {
not_in_home_view: (subs.in_home_view(name) === false),
invite_only: subs.get(name).invite_only,
color: subs.get_color(name)};
var list_item = templates.render('stream_sidebar_row', args);
var list_item = $(templates.render('stream_sidebar_row', args));
$("#" + type + "_filters").append(list_item);
return list_item;
}