Fix up attributes on links (whether auto-linkified or not)

(imported from commit cf362db2a2c9500f62b03a89055ac4585ba00a96)
This commit is contained in:
Keegan McAllister 2012-10-04 16:46:28 -04:00
parent b8fb58968e
commit 8bf693224c
1 changed files with 7 additions and 0 deletions

View File

@ -293,6 +293,13 @@ function add_to_table(zephyrs, table_name, filter_function, where) {
var row = get_zephyr_row(zephyr.id);
register_huddle_onclick(row, zephyr.sender_email);
register_onclick(row, zephyr.id);
row.find('.zephyr_content a').each(function (index, link) {
link = $(link);
link.attr('target', '_blank')
.attr('title', link.attr('href'))
.attr('onclick', 'event.cancelBubble = true;'); // would a closure work here?
});
});
$.each(ids_where_next_is_same_sender, function (index, id) {