X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/db66e4884772629ba51db905f55c0e48f4cebb94..1199ac6605afd11a8a06efe8a1b95d27044e210c:/app/assets/javascripts/index.js diff --git a/app/assets/javascripts/index.js b/app/assets/javascripts/index.js index 17476bb51..d96bbad4a 100644 --- a/app/assets/javascripts/index.js +++ b/app/assets/javascripts/index.js @@ -54,7 +54,7 @@ $(document).ready(function () { if (xhr.getResponseHeader('X-Page-Title')) { var title = xhr.getResponseHeader('X-Page-Title'); - document.title = decodeURIComponent(escape(title)); + document.title = decodeURIComponent(title); } $('head') @@ -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(); }