mirror of
https://github.com/zulip/zulip.git
synced 2026-07-09 21:21:47 +08:00
Note get_zephyr performance
(imported from commit 215a457d30f5a355d18882a9703ff671248b054f)
This commit is contained in:
parent
c3f3a1ef14
commit
5ff4d22859
@ -256,6 +256,8 @@ function get_id(zephyr_row) {
|
||||
return zephyr_row.attr('zid');
|
||||
}
|
||||
|
||||
// NB: this is slow (50 ms or more) due to the custom attribute.
|
||||
// We instead could compute an id based on the zid and focused table.
|
||||
function get_zephyr(zephyr_id) {
|
||||
return $("table.focused_table [zid=" + zephyr_id + "]");
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user