settings: Disable save btn for invalid values of batching period setting.

We disable the "Save changes" button for invalid values in custom
input of realm-level default of email notification batching period
setting.
This commit is contained in:
Sahil Batra
2022-09-02 23:17:23 +05:30
committed by Tim Abbott
parent fa63045b49
commit a446f05c98
3 changed files with 10 additions and 2 deletions

View File

@@ -63,6 +63,14 @@ export function set_up() {
);
maybe_disable_widgets();
$container.on("input", ".email_notification_batching_period_edit_minutes", (e) => {
settings_org.update_save_button_state(e);
});
$container.on("change", ".setting_email_notifications_batching_period_seconds", (e) => {
settings_org.update_save_button_state(e);
});
}
export function initialize() {