From 9e25f5563d87fd6bce5b1679790d6d9c9e34e875 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Mon, 2 Dec 2013 10:17:53 +0000 Subject: [PATCH 1/1] 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. --- app/assets/javascripts/index/history.js | 3 --- 1 file changed, 3 deletions(-) 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() -- 2.43.2