Disable the "add note" button in database offline mode

This commit is contained in:
Tom Hughes 2014-12-14 00:27:31 +00:00
parent a6c24e3e5b
commit 281dc29c5c

View file

@ -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 ?