]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/changeset.js
Standardize forms between login and new
[rails.git] / app / assets / javascripts / changeset.js
index 9e393ad5a51ea698e9add6b832d208d62c3cae20..1010fbac94b03fdeab92db2d3ee3b98e1230295a 100644 (file)
@@ -53,6 +53,14 @@ $(document).ready(function () {
     }
   });
 
+  $(window).scroll(function() {
+        if ($(window).scrollTop() > $('.content-heading').outerHeight() + $('#top-bar').outerHeight() ) {
+            $('#changeset_list_map_wrapper').addClass('scrolled');
+        } else {
+            $('#changeset_list_map_wrapper').removeClass('scrolled');
+        }
+  });
+
   var params = OSM.mapParams();
   if (params.bbox) {
     map.fitBounds([[params.minlat, params.minlon],