Don't pass url to createNote()
This commit is contained in:
parent
63a4f12550
commit
f169299b53
1 changed files with 3 additions and 3 deletions
|
@ -35,14 +35,14 @@ OSM.NewNote = function (map) {
|
|||
OSM.router.route("/note/new");
|
||||
});
|
||||
|
||||
function createNote(marker, text, url) {
|
||||
function createNote(marker, text) {
|
||||
var location = marker.getLatLng().wrap();
|
||||
|
||||
marker.options.draggable = false;
|
||||
marker.dragging.disable();
|
||||
|
||||
$.ajax({
|
||||
url: url,
|
||||
url: "/api/0.6/notes.json",
|
||||
type: "POST",
|
||||
oauth: true,
|
||||
data: {
|
||||
|
@ -154,7 +154,7 @@ OSM.NewNote = function (map) {
|
|||
|
||||
e.preventDefault();
|
||||
$(this).prop("disabled", true);
|
||||
createNote(newNoteMarker, text, "/api/0.6/notes.json");
|
||||
createNote(newNoteMarker, text);
|
||||
});
|
||||
|
||||
return map.getState();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue