mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 04:53:36 +00:00
settings: Fix tooltip not shown when message retention policy invalid.
Previously, the tooltip was not shown on save button when message retention policy is invalid in channel settings. This commit fixes that bug.
This commit is contained in:
@@ -1510,7 +1510,7 @@ function enable_or_disable_save_button($subsection_elem: JQuery): void {
|
||||
) {
|
||||
if (
|
||||
$subsection_elem.attr("id") === "org-message-retention" ||
|
||||
$subsection_elem.hasClass("advanced-configurations-container")
|
||||
$subsection_elem.closest(".advanced-configurations-container").length > 0
|
||||
) {
|
||||
ui_util.disable_element_and_add_tooltip(
|
||||
$save_button,
|
||||
|
||||
Reference in New Issue
Block a user