mirror of https://github.com/zulip/zulip.git
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:
parent
c97ce3a082
commit
9e8b997508
|
@ -95,7 +95,7 @@ function add_narrow_filter(name, type) {
|
||||||
not_in_home_view: (subs.in_home_view(name) === false),
|
not_in_home_view: (subs.in_home_view(name) === false),
|
||||||
invite_only: subs.get(name).invite_only,
|
invite_only: subs.get(name).invite_only,
|
||||||
color: subs.get_color(name)};
|
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);
|
$("#" + type + "_filters").append(list_item);
|
||||||
return list_item;
|
return list_item;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue