X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/54ded37bf2e9967f6462795eebf0b5117399391a..56b2fdf5c9915b02c8bf051e4f82927ae72c8c41:/app/assets/javascripts/leaflet.note.js?ds=sidebyside diff --git a/app/assets/javascripts/leaflet.note.js b/app/assets/javascripts/leaflet.note.js index c0f72af20..0df22eb57 100644 --- a/app/assets/javascripts/leaflet.note.js +++ b/app/assets/javascripts/leaflet.note.js @@ -16,7 +16,7 @@ L.OSM.note = function (options) { update(); function update() { - var disabled = map.getZoom() < 12; + var disabled = OSM.STATUS === "database_offline" || map.getZoom() < 12; link .toggleClass('disabled', disabled) .attr('data-original-title', I18n.t(disabled ?