X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/50f85248db5a2bf1ca860d864f20772f1b87c3d1..94b59f440321846760d430fee378f05a6a2803ee:/app/assets/javascripts/index.js diff --git a/app/assets/javascripts/index.js b/app/assets/javascripts/index.js index ccf4e561c..e8e566f53 100644 --- a/app/assets/javascripts/index.js +++ b/app/assets/javascripts/index.js @@ -187,12 +187,12 @@ $(document).ready(function () { $.cookie('_osm_location', OSM.locationCookie(map), { expires: expiry, path: '/' }); }); - if ($.cookie('_osm_welcome') === 'hide') { - $('.welcome').hide(); + if ($.cookie('_osm_welcome') !== 'hide') { + $('.welcome').addClass('visible'); } $('.welcome .close-wrap').on('click', function() { - $('.welcome').hide(); + $('.welcome').removeClass('visible'); $.cookie('_osm_welcome', 'hide', { expires: expiry, path: '/' }); });