X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/6671a934bf10ad202576d5ca0c1591cf2ef627f8..1596713871672cc319b0d68b51a3698cc6bf0972:/app/assets/javascripts/index/note.js diff --git a/app/assets/javascripts/index/note.js b/app/assets/javascripts/index/note.js index 2d4a8decf..6062f7003 100644 --- a/app/assets/javascripts/index/note.js +++ b/app/assets/javascripts/index/note.js @@ -60,7 +60,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 { @@ -94,7 +94,7 @@ OSM.Note = function (map) { map.addLayer(currentNote); if (callback) callback(); - }; + } function moveToNote() { var data = $('.details').data(),