mirror of https://gitlab.com/tildes/tildes.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
8 lines
291 B
8 lines
291 B
$.onmount('[data-js-external-links-new-tabs]', function() {
|
|
// Open external links in topic, comment, and message text in new tabs
|
|
$(this).find('a').each(function() {
|
|
if (this.host !== window.location.host) {
|
|
$(this).attr('target', '_blank');
|
|
}
|
|
});
|
|
});
|