X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/111dec6853f9938ac0efd05e9a1cb44fe0fdad66..b92cb5b7729287d0256bbe915bfb99ef27d7b940:/app/assets/javascripts/index/new_note.js.erb diff --git a/app/assets/javascripts/index/new_note.js.erb b/app/assets/javascripts/index/new_note.js.erb index 780bccbca..580d7a79b 100644 --- a/app/assets/javascripts/index/new_note.js.erb +++ b/app/assets/javascripts/index/new_note.js.erb @@ -149,6 +149,8 @@ OSM.NewNote = function(map) { e.preventDefault(); createNote(newNote, e.target.form, '/api/0.6/notes.json'); }); + + return map.getState(); }; page.unload = function () {