Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

settings: Show or hide digest weekday option on changing emails setting.

Sahil Batra21051d213086
diff --git a/static/js/settings_org.js b/static/js/settings_org.js
index e3d89751493..60e6258a1eb 100644
--- a/static/js/settings_org.js
+++ b/static/js/settings_org.js
@@ -1097,6 +1097,14 @@ export function build_page() {
);
});
+ $("#id_realm_digest_emails_enabled").on("change", (e) => {
+ const digest_emails_enabled = $(e.target).is(":checked");
+ change_element_block_display_property(
+ "id_realm_digest_weekday",
+ digest_emails_enabled === true,
+ );
+ });
+
$("#id_realm_org_join_restrictions").on("change", (e) => {
const org_join_restrictions = e.target.value;
const node = $("#allowed_domains_label").parent();