diff options
author | Seb Bacon <seb.bacon@gmail.com> | 2012-07-13 08:10:16 +0100 |
---|---|---|
committer | Seb Bacon <seb.bacon@gmail.com> | 2012-07-13 08:21:28 +0100 |
commit | 4f14e3ce1533faaa7d16ab27a73cb9bcd2ba7792 (patch) | |
tree | 0bf65d4a73f93140289f348ffbf7ee50235e3765 /public/javascripts/general.js | |
parent | cb6db9d6bc15ef2976f09788a2e1ed99a2b38daa (diff) |
Ensure the alert banner on every page is hidden if the relevant cookie is set
Diffstat (limited to 'public/javascripts/general.js')
-rw-r--r-- | public/javascripts/general.js | 11 |
1 files changed, 8 insertions, 3 deletions
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(); + } + +}) |