From: Tom Hughes Date: Mon, 29 Apr 2013 16:20:21 +0000 (+0100) Subject: Disable dragging of new notes once they are submitted X-Git-Tag: live~5032 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/d1660a1c4fb71b61b7bd9181a2ec3822652bc29e Disable dragging of new notes once they are submitted --- diff --git a/app/assets/javascripts/index/notes.js.erb b/app/assets/javascripts/index/notes.js.erb index 072890775..4d796a3de 100644 --- a/app/assets/javascripts/index/notes.js.erb +++ b/app/assets/javascripts/index/notes.js.erb @@ -171,6 +171,9 @@ $(document).ready(function () { function createNote(marker, form, url) { var location = marker.getLatLng(); + marker.options.draggable = false; + marker.dragging.disable(); + $(form).find("input[type=submit]").prop("disabled", true); $.ajax({