]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index.js
Adds cycleways for zoom >= 13
[rails.git] / app / assets / javascripts / index.js
index 085b615c7244f66214f2cddee69f89400c28d3d0..d96bbad4a426cc0eff41fb1ac914ee44519ca479 100644 (file)
@@ -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();
   }