Scroll to api error message
This commit is contained in:
parent
ef919179fa
commit
2d03d738da
1 changed files with 4 additions and 2 deletions
|
@ -47,9 +47,11 @@ OSM.Changeset = function (map) {
|
||||||
OSM.loadSidebarContent(window.location.pathname, page.load);
|
OSM.loadSidebarContent(window.location.pathname, page.load);
|
||||||
},
|
},
|
||||||
error: function (xhr) {
|
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("button[data-method][data-url]").prop("disabled", false);
|
||||||
|
content.find("#comment-error")
|
||||||
|
.text(xhr.responseText)
|
||||||
|
.prop("hidden", false)
|
||||||
|
.get(0).scrollIntoView({ block: "nearest" });
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue