X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/1596713871672cc319b0d68b51a3698cc6bf0972..5ff4e4e331e8e8e117bbbfeefe045c66d1349d29:/app/assets/javascripts/leaflet.note.js diff --git a/app/assets/javascripts/leaflet.note.js b/app/assets/javascripts/leaflet.note.js index 8451e9b72..86c455499 100644 --- a/app/assets/javascripts/leaflet.note.js +++ b/app/assets/javascripts/leaflet.note.js @@ -2,24 +2,24 @@ L.OSM.note = function (options) { var control = L.control(options); control.onAdd = function (map) { - var $container = $('
') - .attr('class', 'control-note'); + var $container = $("
") + .attr("class", "control-note"); - var link = $('') - .attr('class', 'control-button') - .attr('href', '#') - .html('') + var link = $("") + .attr("class", "control-button") + .attr("href", "#") + .html("") .appendTo($container); - map.on('zoomend', update); + map.on("zoomend", update); function update() { var disabled = OSM.STATUS === "database_offline" || map.getZoom() < 12; link - .toggleClass('disabled', disabled) - .attr('data-original-title', I18n.t(disabled ? - 'javascripts.site.createnote_disabled_tooltip' : - 'javascripts.site.createnote_tooltip')); + .toggleClass("disabled", disabled) + .attr("data-original-title", I18n.t(disabled ? + "javascripts.site.createnote_disabled_tooltip" : + "javascripts.site.createnote_tooltip")); } update();