mirror of
https://github.com/zulip/zulip.git
synced 2025-11-09 08:26:11 +00:00
list_render: Make list creation logic as an export in list_render module.
This changes how we create lists i.e.
from `list_render($container, list, opts)`
to `list_render.create($container, list, opts)`
This commit is contained in:
@@ -17,7 +17,7 @@ exports.build_default_stream_table = function (streams_data) {
|
||||
|
||||
var table = $("#admin_default_streams_table").expectOne();
|
||||
|
||||
list_render(table, streams_data, {
|
||||
list_render.create(table, streams_data, {
|
||||
name: "default_streams_list",
|
||||
modifier: function (item) {
|
||||
var row = $(templates.render("admin_default_streams_list", { stream: item, can_modify: page_params.is_admin }));
|
||||
|
||||
Reference in New Issue
Block a user