X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/45b3f39b2548169718f640227d3c09064cdfa9cb..ad5acb886787871a70eee6385cddbb4238d3adb2:/src/wolnelektury/static/js/annoy.js diff --git a/src/wolnelektury/static/js/annoy.js b/src/wolnelektury/static/js/annoy.js index d71f14676..6e613c713 100644 --- a/src/wolnelektury/static/js/annoy.js +++ b/src/wolnelektury/static/js/annoy.js @@ -1,23 +1,22 @@ (function($) { $(function() { - $("#annoy-on").click(function(e) { e.preventDefault(); $("#annoy").slideDown('fast'); $(this).hide(); - if (Modernizr.localstorage) localStorage.removeItem("annoyed2019"); + if (Modernizr.localstorage) localStorage.removeItem("annoyed2019tpwl"); }); $("#annoy-off").click(function() { $("#annoy").slideUp('fast'); $("#annoy-on").show(); - if (Modernizr.localstorage) localStorage["annoyed2019"] = true; + if (Modernizr.localstorage) localStorage["annoyed2019tpwl"] = true; }); if (Modernizr.localstorage) { - if (!localStorage["annoyed2019"]) { + if (!localStorage["annoyed2019tpwl"]) { $("#annoy-on").hide(); $("#annoy").show(); }