]> git.openstreetmap.org Git - rails.git/commitdiff
Change cursor to pointer on nonempty calendar cells
authorAnton Khorev <tony29@yandex.ru>
Sat, 15 Mar 2025 17:32:48 +0000 (20:32 +0300)
committerAnton Khorev <tony29@yandex.ru>
Sat, 15 Mar 2025 23:22:51 +0000 (02:22 +0300)
app/assets/javascripts/heatmap.js

index b96a47a2208ac3e0797b31bc863f33782358bb32..2958da3b88d99f9b65d475da722963a66cce334b 100644 (file)
@@ -70,6 +70,10 @@ document.addEventListener("DOMContentLoaded", () => {
       }]
     ]);
 
+    cal.on("mouseover", (event, _timestamp, value) => {
+      if (value) event.target.style.cursor = "pointer";
+    });
+
     cal.on("click", (_event, timestamp) => {
       if (!displayName) return;
       for (const { date, max_id } of heatmapData) {