mirror of https://github.com/zulip/zulip.git
Fix up attributes on links (whether auto-linkified or not)
(imported from commit cf362db2a2c9500f62b03a89055ac4585ba00a96)
This commit is contained in:
parent
b8fb58968e
commit
8bf693224c
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue