mirror of
https://github.com/zulip/zulip.git
synced 2025-11-10 17:07:07 +00:00
Remove direct use of x.attr('zid')
See https://wiki.humbughq.com/Code%20style#x.attrzid-vs.rows.idx for why this is bad. (imported from commit b341146704af3bb1b477b12d226096ab72b5e269)
This commit is contained in:
@@ -381,7 +381,7 @@ function add_to_table(messages, table_name, filter_function, where, allow_collap
|
||||
if (! row.hasClass('message_row')) {
|
||||
return;
|
||||
}
|
||||
var id = row.attr('zid');
|
||||
var id = rows.id(row);
|
||||
if (ids_where_next_is_same_sender[id]) {
|
||||
row.find('.messagebox').addClass("next_is_same_sender");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user