]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index/notes.js.erb
Use OAuth for notes API calls and require authentication to close
[rails.git] / app / assets / javascripts / index / notes.js.erb
index a623a51a2a7fce29bf52bd8af0d949af90977c0b..e67749f07d20cbc44e1d188bae244fe0d8912322 100644 (file)
@@ -171,6 +171,7 @@ $(document).ready(function () {
     $.ajax({
       url: url,
       type: "POST",
+      oauth: true,
       data: {
         lat: location.lat,
         lon: location.lng,
@@ -191,6 +192,7 @@ $(document).ready(function () {
     $.ajax({
       url: url,
       type: "POST",
+      oauth: true,
       data: {
         text: $(form.text).val()
       },