mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +00:00
js: Replace deprecated jQuery event handler shorthand.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
97feea42a1
commit
4e42137bd9
@@ -111,20 +111,20 @@ exports.set_up = function () {
|
||||
|
||||
update_desktop_icon_count_display();
|
||||
|
||||
$("#send_test_notification").click(() => {
|
||||
$("#send_test_notification").on("click", () => {
|
||||
notifications.send_test_notification(
|
||||
i18n.t("This is what a Zulip notification looks like."),
|
||||
);
|
||||
});
|
||||
|
||||
$("#play_notification_sound").click(() => {
|
||||
$("#play_notification_sound").on("click", () => {
|
||||
$("#notifications-area").find("audio")[0].play();
|
||||
});
|
||||
|
||||
const notification_sound_dropdown = $("#notification_sound");
|
||||
notification_sound_dropdown.val(page_params.notification_sound);
|
||||
|
||||
$("#enable_sounds, #enable_stream_audible_notifications").change(() => {
|
||||
$("#enable_sounds, #enable_stream_audible_notifications").on("change", () => {
|
||||
if (
|
||||
$("#enable_stream_audible_notifications").prop("checked") ||
|
||||
$("#enable_sounds").prop("checked")
|
||||
|
||||
Reference in New Issue
Block a user