X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/e2cb47f1ae6c1053ba772ca488a32fab114f2cfd..3458d881af4584e44d72bb682771e3c7a3cf6e68:/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); + } } }); }