]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index/notes.js.erb
Disable dragging of new notes once they are submitted
[rails.git] / app / assets / javascripts / index / notes.js.erb
index 0728907758dab6e88007e03367b4bf87ca123243..4d796a3de8cc7b36ee5b5a6c0034d9dfa75bbb41 100644 (file)
@@ -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({