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