X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/e2cb47f1ae6c1053ba772ca488a32fab114f2cfd..324c37a39ba7a59eee633f0b19203670d491b520:/app/assets/javascripts/menu.js?ds=sidebyside diff --git a/app/assets/javascripts/menu.js b/app/assets/javascripts/menu.js index 595b15398..a01fc39cc 100644 --- a/app/assets/javascripts/menu.js +++ b/app/assets/javascripts/menu.js @@ -34,14 +34,16 @@ function createMenu(anchorid, menuid, align) { } $arrow.click(function(e) { - e.stopPropagation(); - e.preventDefault(); - if ($menu.is(":visible")) { - $menu.hide(); - $page.off("click", hide); - } else { - openMenu($anchor, $menu.show(), align); - $page.on("click", hide); + if ($anchor.is(":not(.disabled)")) { + e.stopPropagation(); + e.preventDefault(); + if ($menu.is(":visible")) { + $menu.hide(); + $page.off("click", hide); + } else { + openMenu($anchor, $menu.show(), align); + $page.on("click", hide); + } } }); }