Use delegated event handlers instead of inline, direct handlers on messages

(imported from commit dd7dc77e8282371a5f3b82e0cfa93f09d53a7a80)
This commit is contained in:
Zev Benjamin
2012-11-14 17:33:13 -05:00
parent 8c20362c18
commit a5ea766ff6
3 changed files with 75 additions and 65 deletions

View File

@@ -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')