X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/e2aef40437767e779f97a7447de69b4540839ff5..56316e17ada73e35b7ddf9782619823788a92d71:/app/assets/javascripts/index.js diff --git a/app/assets/javascripts/index.js b/app/assets/javascripts/index.js index 085b615c7..d96bbad4a 100644 --- a/app/assets/javascripts/index.js +++ b/app/assets/javascripts/index.js @@ -165,6 +165,15 @@ $(document).ready(function () { $.cookie("_osm_location", OSM.locationCookie(map), { expires: expiry, path: "/" }); }); + if ($.cookie('_osm_donatedone2015') === 'hide') { + $('#donate').hide(); + } + + $('#donate .close').on('click', function() { + $('#donate').hide(); + $.cookie("_osm_donatedone2015", 'hide', { expires: expiry }); + }); + if ($.cookie('_osm_welcome') === 'hide') { $('.welcome').hide(); }