From: Tom Hughes Date: Mon, 2 Dec 2013 18:49:56 +0000 (+0000) Subject: Restore click handler for changeset entries X-Git-Tag: live~4621 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/be931d0955fbd2379b1ffedb9abd32b1e8cb5915 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. --- 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()