X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/fde2744f749a70afcd1f77bc47558476da85ffd3..3458d881af4584e44d72bb682771e3c7a3cf6e68:/app/assets/javascripts/changeset.js diff --git a/app/assets/javascripts/changeset.js b/app/assets/javascripts/changeset.js index 152b3b4f7..1010fbac9 100644 --- a/app/assets/javascripts/changeset.js +++ b/app/assets/javascripts/changeset.js @@ -27,12 +27,12 @@ $(document).ready(function () { function highlightChangeset(id) { rects[id].setStyle({fillOpacity: 0.5}); - $("#tr-changeset-" + id).addClass("selected"); + $("#changeset_" + id).addClass("selected"); } function unHighlightChangeset(id) { rects[id].setStyle({fillOpacity: 0}); - $("#tr-changeset-" + id).removeClass("selected"); + $("#changeset_" + id).removeClass("selected"); } group.on({ @@ -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],