mirror of
https://github.com/zulip/zulip.git
synced 2025-11-12 18:06:44 +00:00
compose: Move needs-empty-compose class to parent.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
ef8f23aa05
commit
a360ffd7f6
@@ -89,11 +89,7 @@ export function initialize() {
|
||||
}
|
||||
|
||||
// The poll widget requires an empty compose box.
|
||||
if (compose_text_length > 0) {
|
||||
$(".needs-empty-compose").parent().addClass("disabled-on-hover");
|
||||
} else {
|
||||
$(".needs-empty-compose").parent().removeClass("disabled-on-hover");
|
||||
}
|
||||
$(".needs-empty-compose").toggleClass("disabled-on-hover", compose_text_length > 0);
|
||||
|
||||
if (compose_state.get_is_content_unedited_restored_draft()) {
|
||||
compose_state.set_is_content_unedited_restored_draft(false);
|
||||
|
||||
Reference in New Issue
Block a user