]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index/history.js
Add color hint bars around changesets list
[rails.git] / app / assets / javascripts / index / history.js
index 74b9a4e248b53288f71beeca225936659a45f934..8a3ba28ae56646ad6cdc05a4517a59c9c28e37ac 100644 (file)
@@ -105,6 +105,10 @@ OSM.History = function (map) {
   function displayFirstChangesets(html) {
     $("#sidebar_content .changesets").html(html);
 
+    $("#sidebar_content .changesets ol")
+      .before($("<div class='changeset-color-hint-bar opacity-75 sticky-top changeset-above-sidebar-viewport'>"))
+      .after($("<div class='changeset-color-hint-bar opacity-75 sticky-bottom changeset-below-sidebar-viewport'>"));
+
     if (location.pathname === "/history") {
       setPaginationMapHashes();
     }