Skip to content

Commit

Permalink
fixed IR link from remove confirmation page
Browse files Browse the repository at this point in the history
  • Loading branch information
jrbarnes9 committed Feb 18, 2020
1 parent 7c4fb4b commit 43b83cf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ <h2 class="collapsible__title js-collapsible-title icon--collapsible-simple u-fs
</h2>
<div class="collapsible__body js-collapsible-body">
<p>You can <strong>share your household access code</strong> with the people you live with so they can complete their own sections.</p>
<p>If this is not possible, there are <a class="js-ir-link" href="#">other ways each person can complete their own census</a>.</p>
<p>If this is not possible, there are <a class="js-link-ir" href="#">other ways each person can complete their own census</a>.</p>
<button class="btn btn--secondary btn--small js-collapsible-close u-no-js-hide" data-ga="click" data-ga-category="definition" data-ga-action="Close panel" data-ga-label="Can’t answer someone else’s questions?">Hide this</button>
</div>
</div>
Expand Down Expand Up @@ -83,7 +83,7 @@ <h2 class="collapsible__title js-collapsible-title icon--collapsible-simple u-fs
(surveyType ? '&survey=' + surveyType : '');
});

$('.js-ir-link').click(function(e) {
$('.js-link-ir').click(function(e) {
e.preventDefault();

window.location = '../cant-answer-for-others/?person_id=' + personId +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ <h3 class="collapsible__title js-collapsible-title icon--collapsible-simple u-fs
</h3>
<div class="collapsible__body js-collapsible-body">
<p>You can <strong>share your household access code</strong> with the people you live with so they can complete their own sections.</p>
<p>If this is not possible, there are <a class="js-link-ir" href="#">other ways each person can do their own census</a>.</p>
<p>If this is not possible, there are <a class="js-link-ir" href="../cant-answer-for-others/">other ways each person can do their own census</a>.</p>
<button class="btn btn--secondary btn--small js-collapsible-close u-no-js-hide" data-ga="click" data-ga-category="definition" data-ga-action="Close panel" data-ga-label="Can’t answer someone else’s questions?">Hide this</button>
</div>
</div>
Expand Down Expand Up @@ -116,7 +116,8 @@ <h3 class="collapsible__title js-collapsible-title icon--collapsible-simple u-fs
});
function updateAllPreviousLinks() {
$('.js-previous-link').attr('href', '../summary/');
$('.js-ir-link').attr('href', '../cant-answer-for-others/?person_id=' + personId + '&previous=' + 'remove-household-member');
$('.js-link-ir').attr('href', '../cant-answer-for-others/?person_id=' + personId + '&previous=' + 'remove-household-member');
}

$(updateAllPreviousLinks);
</script>

0 comments on commit 43b83cf

Please sign in to comment.