Skip to content
This repository has been archived by the owner on Apr 3, 2019. It is now read-only.

Commit

Permalink
fix(client): COPPA - make learn more link target _blank only on sync
Browse files Browse the repository at this point in the history
fixes #1783
  • Loading branch information
johngruen authored and Shane Tomlinson committed Oct 27, 2014
1 parent 83ec379 commit ae06e40
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/scripts/templates/cannot_create_account.mustache
Expand Up @@ -7,9 +7,9 @@
<p>
<strong>{{#t}}You must meet certain age requirements to create a Firefox&nbsp;Account.{{/t}}</strong>
</p>

<p class="links">
<a href="http://www.ftc.gov/news-events/media-resources/protecting-consumer-privacy/kids-privacy-coppa" target="_blank">{{#t}}Learn more.{{/t}}</a>
<a href="http://www.ftc.gov/news-events/media-resources/protecting-consumer-privacy/kids-privacy-coppa" {{#isSync}} target="_blank"{{/isSync}}>{{#t}}Learn more.{{/t}}</a>
</p>

</section>
</div>
9 changes: 8 additions & 1 deletion app/scripts/views/cannot_create_account.js
Expand Up @@ -12,7 +12,14 @@ function (BaseView, CannotCreateAccountTemplate) {

var CannotCreateAccountView = BaseView.extend({
template: CannotCreateAccountTemplate,
className: 'cannot-create-account'
className: 'cannot-create-account',

context: function () {
return {
isSync: this.relier.isSync()
};
}

});

return CannotCreateAccountView;
Expand Down

0 comments on commit ae06e40

Please sign in to comment.