1
0
Fork 0
mirror of https://github.com/capistrano/capistrano synced 2023-03-27 23:21:18 -04:00

"No thanks" should apply to entire site

This fixes a bug where dismissing the modal with "no thanks" would hide it for
the current page, but the modal would then reappear when navigating to another
page.
This commit is contained in:
Matt Brictson 2016-02-29 10:49:18 -08:00
parent 3161c0213f
commit de195ee374

View file

@ -49,7 +49,7 @@
ga('send', 'event', 'harrowBanner', 'clickthrough');
});
$(".harrowBanner__dismissLink").on('click', function (e) {
$.cookie('harrowBanner__dismissed', '1', { expires: 10});
$.cookie('harrowBanner__dismissed', '1', { path: "/", expires: 10 });
$('.harrowBanner').hide();
ga('send', 'event', 'harrowBanner', 'dismiss');
});