- $(form).find("#comment-error").text(xhr.responseText);
- $(form).find("#comment-error").prop("hidden", false);
- $(form).find("button").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" });