X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/98bfaace9aeba7fb387596cc16b2e661506173c6..cebda5ffb9bc45171ddc6b4c4a25f14912fdad51:/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 a6213b9c4..c6e77bc71 100644 --- a/app/assets/javascripts/index/changeset.js +++ b/app/assets/javascripts/index/changeset.js @@ -46,8 +46,8 @@ OSM.Changeset = function (map) { success: function () { OSM.loadSidebarContent(window.location.pathname, page.load); }, - error: function (xhr, xhr_status, http_status) { - $(form).find("#comment-error").text(http_status); + error: function (xhr) { + $(form).find("#comment-error").text(xhr.responseText); $(form).find("#comment-error").prop("hidden", false); $(form).find("input[type=submit]").prop("disabled", false); }