js: Access ‘disabled’ as a property, not an attribute.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2020-07-21 17:59:06 -07:00
committed by Tim Abbott
parent 6800c3363f
commit 498fe285fa
18 changed files with 71 additions and 83 deletions

View File

@@ -696,7 +696,7 @@ function validate_private_message() {
}
exports.validate = function () {
$("#compose-send-button").attr("disabled", "disabled").trigger("blur");
$("#compose-send-button").prop("disabled", true).trigger("blur");
const message_content = compose_state.message_content();
if (reminder.is_deferred_delivery(message_content)) {
show_sending_indicator(i18n.t("Scheduling..."));
@@ -1062,7 +1062,7 @@ exports.initialize = function () {
function failure(error_msg) {
exports.clear_invites();
compose_error(error_msg, $("#compose-textarea"));
$(event.target).attr("disabled", true);
$(event.target).prop("disabled", true);
}
function xhr_failure(xhr) {