From: John Firebaugh Date: Mon, 7 Oct 2013 23:35:39 +0000 (-0700) Subject: Don't route clicks on the dropdown menus X-Git-Tag: live~4625^2~216 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/c9dcccdc90a91e8b78861a5bfb9c967270379847 Don't route clicks on the dropdown menus --- diff --git a/app/assets/javascripts/index.js b/app/assets/javascripts/index.js index db858c7c1..59335ff84 100644 --- a/app/assets/javascripts/index.js +++ b/app/assets/javascripts/index.js @@ -283,6 +283,7 @@ $(document).ready(function () { }); $(document).on("click", "a", function(e) { + if (e.isPropagationStopped()) return; if (router(this.pathname + this.search + this.hash)) e.preventDefault(); });