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:
Keegan McAllister
2013-02-09 13:52:16 -05:00
parent 8399426b9c
commit aa644ab757
2 changed files with 11 additions and 11 deletions

View File

@@ -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");
}