Merge pull request #418 from mozilla/footer-link-blank
_blank all footer links
This commit is contained in:
commit
d5e936b8fc
|
@ -14,23 +14,17 @@ $(document).ready(function() {
|
||||||
//link back to homepage
|
//link back to homepage
|
||||||
$('.send-new').attr('href', window.location.origin);
|
$('.send-new').attr('href', window.location.origin);
|
||||||
|
|
||||||
$('.send-new').click(function(target) {
|
$('.send-new').click(function() {
|
||||||
target.preventDefault();
|
|
||||||
sendEvent('recipient', 'restarted', {
|
sendEvent('recipient', 'restarted', {
|
||||||
cd2: 'completed'
|
cd2: 'completed'
|
||||||
}).then(() => {
|
|
||||||
location.href = target.currentTarget.href;
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
$('.legal-links a, .social-links a, #dl-firefox').click(function(target) {
|
$('.legal-links a, .social-links a, #dl-firefox').click(function(target) {
|
||||||
target.preventDefault();
|
|
||||||
const metric = findMetric(target.currentTarget.href);
|
const metric = findMetric(target.currentTarget.href);
|
||||||
// record exited event by recipient
|
// record exited event by recipient
|
||||||
sendEvent('recipient', 'exited', {
|
sendEvent('recipient', 'exited', {
|
||||||
cd3: metric
|
cd3: metric
|
||||||
}).then(() => {
|
|
||||||
location.href = target.currentTarget.href;
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -23,35 +23,26 @@ $(document).ready(function() {
|
||||||
$('#file-upload').change(onUpload);
|
$('#file-upload').change(onUpload);
|
||||||
|
|
||||||
$('.legal-links a, .social-links a, #dl-firefox').click(function(target) {
|
$('.legal-links a, .social-links a, #dl-firefox').click(function(target) {
|
||||||
target.preventDefault();
|
|
||||||
const metric = findMetric(target.currentTarget.href);
|
const metric = findMetric(target.currentTarget.href);
|
||||||
// record exited event by recipient
|
// record exited event by recipient
|
||||||
sendEvent('sender', 'exited', {
|
sendEvent('sender', 'exited', {
|
||||||
cd3: metric
|
cd3: metric
|
||||||
}).then(() => {
|
|
||||||
location.href = target.currentTarget.href;
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#send-new-completed').click(function(target) {
|
$('#send-new-completed').click(function() {
|
||||||
target.preventDefault();
|
|
||||||
// record restarted event
|
// record restarted event
|
||||||
|
storage.referrer = 'errored-upload';
|
||||||
sendEvent('sender', 'restarted', {
|
sendEvent('sender', 'restarted', {
|
||||||
cd2: 'completed'
|
cd2: 'completed'
|
||||||
}).then(() => {
|
|
||||||
storage.referrer = 'completed-upload';
|
|
||||||
location.href = target.currentTarget.href;
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#send-new-error').click(function(target) {
|
$('#send-new-error').click(function() {
|
||||||
target.preventDefault();
|
|
||||||
// record restarted event
|
// record restarted event
|
||||||
|
storage.referrer = 'errored-upload';
|
||||||
sendEvent('sender', 'restarted', {
|
sendEvent('sender', 'restarted', {
|
||||||
cd2: 'errored'
|
cd2: 'errored'
|
||||||
}).then(() => {
|
|
||||||
storage.referrer = 'errored-upload';
|
|
||||||
location.href = target.currentTarget.href;
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -43,12 +43,12 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="footer">
|
<div class="footer">
|
||||||
<div class="legal-links">
|
<div class="legal-links">
|
||||||
<a href="https://www.mozilla.org"><img class="mozilla-logo" src="/resources/mozilla-logo.svg"/></a>
|
<a href="https://www.mozilla.org" target="_blank"><img class="mozilla-logo" src="/resources/mozilla-logo.svg"/></a>
|
||||||
<a href="https://www.mozilla.org/about/legal" data-l10n-id="footerLinkLegal">Legal</a>
|
<a href="https://www.mozilla.org/about/legal" data-l10n-id="footerLinkLegal" target="_blank">Legal</a>
|
||||||
<a href="https://testpilot.firefox.com/about" data-l10n-id="footerLinkAbout">About Test Pilot</a>
|
<a href="https://testpilot.firefox.com/about" data-l10n-id="footerLinkAbout" target="_blank">About Test Pilot</a>
|
||||||
<a href="/legal" data-l10n-id="footerLinkPrivacy">Privacy</a>
|
<a href="/legal" data-l10n-id="footerLinkPrivacy" target="_blank">Privacy</a>
|
||||||
<a href="/legal" data-l10n-id="footerLinkTerms">Terms</a>
|
<a href="/legal" data-l10n-id="footerLinkTerms" target="_blank">Terms</a>
|
||||||
<a href="https://www.mozilla.org/privacy/websites/#cookies" data-l10n-id="footerLinkCookies">Cookies</a>
|
<a href="https://www.mozilla.org/privacy/websites/#cookies" data-l10n-id="footerLinkCookies" target="_blank">Cookies</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="social-links">
|
<div class="social-links">
|
||||||
<a href="https://github.com/mozilla/send" target="_blank" rel="noreferrer noopener"><img class="github" src="/resources/github-icon.svg"/></a>
|
<a href="https://github.com/mozilla/send" target="_blank" rel="noreferrer noopener"><img class="github" src="/resources/github-icon.svg"/></a>
|
||||||
|
|
Loading…
Reference in New Issue