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.
This commit is contained in:
Tom Hughes 2013-12-02 18:49:56 +00:00
parent 9e25f5563d
commit be931d0955

View file

@ -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()