From 4f14e3ce1533faaa7d16ab27a73cb9bcd2ba7792 Mon Sep 17 00:00:00 2001 From: Seb Bacon Date: Fri, 13 Jul 2012 08:10:16 +0100 Subject: Ensure the alert banner on every page is hidden if the relevant cookie is set --- public/javascripts/general.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'public/javascripts/general.js') diff --git a/public/javascripts/general.js b/public/javascripts/general.js index ab74cf318..9ae10593c 100644 --- a/public/javascripts/general.js +++ b/public/javascripts/general.js @@ -12,7 +12,7 @@ $(document).ready(function() { } } }) - + } } @@ -33,7 +33,7 @@ $(document).ready(function() { at: "left bottom", of: this, collision: "fit" }); - + }); $('.close-button').click(function() { $(this).parent().hide() }); $('div#variety-filter a').each(function() { @@ -44,4 +44,9 @@ $(document).ready(function() { return false; }) }) -}) \ No newline at end of file + + if($.cookie('seen_foi2') == 1) { + $('#everypage').hide(); + } + +}) -- cgit v1.2.3