X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/e2cb47f1ae6c1053ba772ca488a32fab114f2cfd..8255553e9743d0f21ee05b704b4ea2910bf983cc:/app/assets/javascripts/menu.js 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); + } } }); }