]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index/changeset.js
Underline time elements that have a title
[rails.git] / app / assets / javascripts / index / changeset.js
index a6213b9c434367a9141062be608e1a2b53d49bf0..c6e77bc71f2f9af2f8a69d194e3975598251f5a2 100644 (file)
@@ -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);
       }