Skip to content

Commit

Permalink
Allow opening jitms in the same window instead of hard-coding new win…
Browse files Browse the repository at this point in the history
…dows (#8982)
  • Loading branch information
withinboredom authored and oskosk committed Mar 16, 2018
1 parent 46152c6 commit 4899b2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _inc/jetpack-jitm.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jQuery( document ).ready( function( $ ) {
html += '</div>';
if ( envelope.CTA.message ) {
html += '<div class="jitm-banner__action">';
html += '<a href="' + envelope.url + '" target="_blank" rel="noopener noreferrer" title="' + envelope.CTA.message + '" data-module="' + envelope.feature_class + '" type="button" class="jitm-button is-compact ' + ( envelope.CTA.primary ? 'is-primary' : '' ) + ' jptracks" data-jptracks-name="nudge_click" data-jptracks-prop="jitm-' + envelope.id + '">' + envelope.CTA.message + '</a>';
html += '<a href="' + envelope.url + '" target="' + ( envelope.CTA.newWindow === false ? '_self' : '_blank') + '" rel="noopener noreferrer" title="' + envelope.CTA.message + '" data-module="' + envelope.feature_class + '" type="button" class="jitm-button is-compact ' + ( envelope.CTA.primary ? 'is-primary' : '' ) + ' jptracks" data-jptracks-name="nudge_click" data-jptracks-prop="jitm-' + envelope.id + '">' + envelope.CTA.message + '</a>';
html += '</div>';
}
html += '<a href="#" data-module="' + envelope.feature_class + '" class="jitm-banner__dismiss"></a>';
Expand Down

0 comments on commit 4899b2d

Please sign in to comment.