X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/ef919179fa8dbebad66cb48279613e697823b84f..52f755cb27dd7dad2fe65a3deb5d4591c6675dec:/app/assets/javascripts/index/changeset.js?ds=sidebyside diff --git a/app/assets/javascripts/index/changeset.js b/app/assets/javascripts/index/changeset.js index 40f6aa05b..75a1f7b4d 100644 --- a/app/assets/javascripts/index/changeset.js +++ b/app/assets/javascripts/index/changeset.js @@ -47,9 +47,11 @@ OSM.Changeset = function (map) { OSM.loadSidebarContent(window.location.pathname, page.load); }, error: function (xhr) { - content.find("#comment-error").text(xhr.responseText); - content.find("#comment-error").prop("hidden", false); content.find("button[data-method][data-url]").prop("disabled", false); + content.find("#comment-error") + .text(xhr.responseText) + .prop("hidden", false) + .get(0).scrollIntoView({ block: "nearest" }); } }); }