From be931d0955fbd2379b1ffedb9abd32b1e8cb5915 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Mon, 2 Dec 2013 18:49:56 +0000 Subject: [PATCH] Restore click handler for changeset entries The default click handler only handle the, not the rest of the entry, so retore the handler but add an e.preventDefault() call to stop the second handler running. --- app/assets/javascripts/index/history.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/assets/javascripts/index/history.js b/app/assets/javascripts/index/history.js index cb2ef6d0c..4a2b96be4 100644 --- a/app/assets/javascripts/index/history.js +++ b/app/assets/javascripts/index/history.js @@ -8,6 +8,10 @@ OSM.History = function(map) { }) .on("mouseout", "[data-changeset]", function () { unHighlightChangeset($(this).data("changeset").id); + }) + .on("click", "[data-changeset]", function (e) { + e.preventDefault(); + clickChangeset($(this).data("changeset").id); }); var group = L.featureGroup() -- 2.43.2