Disable the "add note" button in database offline mode
This commit is contained in:
parent
a6c24e3e5b
commit
281dc29c5c
1 changed files with 1 additions and 1 deletions
|
@ -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 ?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue