X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/e256c837b56d9f1c40c0c57dd89db4825bc7489e..083500f056f5b995f1979f88b37793046d9e4d37:/app/assets/javascripts/index/note.js diff --git a/app/assets/javascripts/index/note.js b/app/assets/javascripts/index/note.js index 2d4a8decf..3973420bd 100644 --- a/app/assets/javascripts/index/note.js +++ b/app/assets/javascripts/index/note.js @@ -1,6 +1,5 @@ OSM.Note = function (map) { - var noteLayer = map.noteLayer, - content = $('#sidebar_content'), + var content = $('#sidebar_content'), page = {}, halo, currentNote; @@ -60,7 +59,7 @@ OSM.Note = function (map) { content.find("textarea").on("input", function (e) { var form = e.target.form; - if ($(e.target).val() == "") { + if ($(e.target).val() === "") { $(form.close).val(I18n.t("javascripts.notes.show.resolve")); $(form.comment).prop("disabled", true); } else { @@ -88,13 +87,13 @@ OSM.Note = function (map) { currentNote = L.marker(latLng, { icon: noteIcons[data.status], opacity: 1, - clickable: true + interactive: true }); map.addLayer(currentNote); if (callback) callback(); - }; + } function moveToNote() { var data = $('.details').data(),