Commit f76ce125 authored by Mohsin Saeed's avatar Mohsin Saeed Committed by Chris Snyder
Browse files

Issue #3200946 by mohsinsaeed16, NWOM, PhilY: The first popup target is used...

Issue #3200946 by mohsinsaeed16, NWOM, PhilY: The first popup target is used for all subsequent targets on same page
parent 39c84217
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -18,9 +18,9 @@
    $('#externalLinkPopupModalLabel').html(settings.title);
    $('#externalLinkPopupModalCloseButton').html(settings.labelno);
    $('#externalLinkPopupModalContinueButton').html(settings.labelyes);
    $('#externalLinkPopupModalContinueButton').click(function () {
    $('#externalLinkPopupModalContinueButton').unbind('click').bind('click',function () { 
      var target = window.open(element.href, element.target, 'noopener');
      target.focus();
      $('.modal-content').find('.close').trigger('click'); 
    });
    $('#externalLinkPopupModalBody').html(bodyHtml);
    $('#externalLinkPopupModal').modal();