From 1d793777685c43f3897c2be578e94b1f51fcabcd Mon Sep 17 00:00:00 2001 From: Ivan Fonseca Date: Sat, 28 Jul 2018 11:41:40 -0400 Subject: [PATCH] Update external links behaviour comment --- tildes/static/js/behaviors/external-links-new-tabs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tildes/static/js/behaviors/external-links-new-tabs.js b/tildes/static/js/behaviors/external-links-new-tabs.js index 9afb2ff..00ac324 100644 --- a/tildes/static/js/behaviors/external-links-new-tabs.js +++ b/tildes/static/js/behaviors/external-links-new-tabs.js @@ -1,5 +1,5 @@ $.onmount('[data-js-external-links-new-tabs]', function() { - // Make all links in comment open in new tab + // Make links in the text open in a new tab $(this).find( 'a[href^="http"]' + // Select external links ':not([href*="tildes.net"])' // But not links to tildes