mirror of https://github.com/zulip/zulip.git
message_edit: Rename disable-btn class.
This commit is a part of the efforts to rename btn-related classes and variables to align with Zulip's no-abbreviations policy and streamline the search results.
This commit is contained in:
parent
c0caeab198
commit
ef929efa1f
|
@ -340,8 +340,8 @@ export function stream_and_topic_exist_in_edit_history(
|
|||
export function hide_message_edit_spinner($row: JQuery): void {
|
||||
$row.find(".loader").hide();
|
||||
$row.find(".message_edit_save span").show();
|
||||
$row.find(".message_edit_save").removeClass("disable-btn");
|
||||
$row.find(".message_edit_cancel").removeClass("disable-btn");
|
||||
$row.find(".message_edit_save").removeClass("message-edit-button-disabled");
|
||||
$row.find(".message_edit_cancel").removeClass("message-edit-button-disabled");
|
||||
}
|
||||
|
||||
export function show_message_edit_spinner($row: JQuery): void {
|
||||
|
@ -349,8 +349,8 @@ export function show_message_edit_spinner($row: JQuery): void {
|
|||
// do for send button in compose box.
|
||||
loading.show_button_spinner($row.find(".loader"), true);
|
||||
$row.find(".message_edit_save span").hide();
|
||||
$row.find(".message_edit_save").addClass("disable-btn");
|
||||
$row.find(".message_edit_cancel").addClass("disable-btn");
|
||||
$row.find(".message_edit_save").addClass("message-edit-button-disabled");
|
||||
$row.find(".message_edit_cancel").addClass("message-edit-button-disabled");
|
||||
}
|
||||
|
||||
export function show_topic_edit_spinner($row: JQuery): void {
|
||||
|
|
|
@ -746,10 +746,10 @@ of the base style defined for a read-only textarea in dark mode. */
|
|||
.btn-wrapper {
|
||||
cursor: not-allowed;
|
||||
}
|
||||
}
|
||||
|
||||
.disable-btn {
|
||||
pointer-events: none;
|
||||
}
|
||||
.message-edit-button-disabled {
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
/* Reduce some of the heavy padding from Bootstrap. */
|
||||
|
|
Loading…
Reference in New Issue