mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 14:35:27 +00:00
Render all new zephyrs with a single template invocation
(imported from commit 13803e0e96901d129d4aefcd5fde63548deb4dc0)
This commit is contained in:
@@ -655,10 +655,7 @@ function add_to_table(zephyrs, table_name, filter_function) {
|
||||
prev = zephyr;
|
||||
});
|
||||
|
||||
$.each(zephyrs_to_render, function (index, zephyr) {
|
||||
var new_tr = $(templates.zephyr(zephyr));
|
||||
table.append(new_tr);
|
||||
});
|
||||
table.append(templates.zephyr({'zephyrs': zephyrs_to_render}));
|
||||
|
||||
$.each(zephyrs_to_render, function (index, zephyr) {
|
||||
register_huddle_onclick(get_zephyr_row(zephyr.id), zephyr.sender_email);
|
||||
|
||||
Reference in New Issue
Block a user