From b3be03ccfa66605c529346f7481c53fc74ae1541 Mon Sep 17 00:00:00 2001 From: Ans Date: Tue, 26 Jun 2018 10:38:19 -0400 Subject: [PATCH] Add noopener attribute to window.open --- .../static/retirement/admin/js/admin/RelatedObjectLookups.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/retirement_api/static/retirement/admin/js/admin/RelatedObjectLookups.js b/retirement_api/static/retirement/admin/js/admin/RelatedObjectLookups.js index 6d17486..95aa893 100644 --- a/retirement_api/static/retirement/admin/js/admin/RelatedObjectLookups.js +++ b/retirement_api/static/retirement/admin/js/admin/RelatedObjectLookups.js @@ -36,7 +36,7 @@ function showRelatedObjectLookupPopup(triggeringLink) { } else { href = triggeringLink.href + '?_popup=1'; } - var win = window.open(href, name, 'height=500,width=800,resizable=yes,scrollbars=yes'); + var win = window.open(href, name, 'height=500,width=800,noopener,resizable=yes,scrollbars=yes'); win.focus(); return false; } @@ -61,7 +61,7 @@ function showAddAnotherPopup(triggeringLink) { } else { href += '&_popup=1'; } - var win = window.open(href, name, 'height=500,width=800,resizable=yes,scrollbars=yes'); + var win = window.open(href, name, 'height=500,width=800,noopener,resizable=yes,scrollbars=yes'); win.focus(); return false; }