mirror of
https://github.com/zulip/zulip.git
synced 2025-11-07 07:23:22 +00:00
Use delegated event handlers instead of inline, direct handlers on messages
(imported from commit dd7dc77e8282371a5f3b82e0cfa93f09d53a7a80)
This commit is contained in:
@@ -355,10 +355,6 @@ function add_to_table(messages, table_name, filter_function, where, allow_collap
|
||||
|
||||
$.each(messages_to_render, function (index, message) {
|
||||
var row = rows.get(message.id, table_name);
|
||||
register_onclick(row, message.id);
|
||||
register_user_info_mouseover(row, message.id);
|
||||
register_user_info_mouseout(row, message.id);
|
||||
|
||||
row.find('.message_content a').each(function (index, link) {
|
||||
link = $(link);
|
||||
link.attr('target', '_blank')
|
||||
|
||||
Reference in New Issue
Block a user