From: Tom Hughes Date: Mon, 2 Dec 2013 10:17:53 +0000 (+0000) Subject: Drop click handler for changeset entries in the history sidebar X-Git-Tag: live~4640 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/9e25f5563d87fd6bce5b1679790d6d9c9e34e875 Drop click handler for changeset entries in the history sidebar The default click handler in index.js handles them fine, and as this one was not calling preventDefault both were actually firing in some browsers, causing the changeset to be loaded twice and two history entries to be created. --- diff --git a/app/assets/javascripts/index/history.js b/app/assets/javascripts/index/history.js index 639705f91..cb2ef6d0c 100644 --- a/app/assets/javascripts/index/history.js +++ b/app/assets/javascripts/index/history.js @@ -8,9 +8,6 @@ OSM.History = function(map) { }) .on("mouseout", "[data-changeset]", function () { unHighlightChangeset($(this).data("changeset").id); - }) - .on("click", "[data-changeset]", function () { - clickChangeset($(this).data("changeset").id); }); var group = L.featureGroup()