mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 06:23:38 +00:00
settings: Nest PM content setting in Desktop notification setting.
Fixes #5879
This commit is contained in:
@@ -74,6 +74,16 @@ exports.set_up = function () {
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
$("#enable_desktop_notifications").change(function () {
|
||||
if (this.checked) {
|
||||
$("#pm_content_in_desktop_notifications").removeAttr("disabled");
|
||||
$("#pm_content_in_desktop_notifications_label").parent().removeClass("control-label-disabled");
|
||||
} else {
|
||||
$("#pm_content_in_desktop_notifications").attr("disabled", true);
|
||||
$("#pm_content_in_desktop_notifications_label").parent().addClass("control-label-disabled");
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
function _update_page() {
|
||||
|
||||
Reference in New Issue
Block a user