# HG changeset patch # User bsw # Date 1460966269 -7200 # Node ID a501cdd10fbb45e18efe5afe386cd70367101766 # Parent 48d843cd65f0c059ce2de54f075463ede905c5e8 Changed default option when changing notification level diff -r 48d843cd65f0 -r a501cdd10fbb app/main/member/settings_notification.lua --- a/app/main/member/settings_notification.lua Mon Apr 18 09:53:22 2016 +0200 +++ b/app/main/member/settings_notification.lua Mon Apr 18 09:57:49 2016 +0200 @@ -59,7 +59,7 @@ attr = { id = "digest_on", type = "radio", name = "digest", value = "true", - checked = app.session.member.notification_hour ~= nil and "checked" or nil, + checked = app.session.member.disable_notifications or app.session.member.notification_hour ~= nil and "checked" or nil, onchange = [[ $(".view_on_digest_true")[this.checked ? "show" : "hide"](400) ]] } } @@ -120,7 +120,7 @@ attr = { id = "digest_off", type = "radio", name = "digest", value = "false", - checked = app.session.member.notification_dow == nil and app.session.member.notification_hour == nil and "checked" or nil, + checked = not app.session.member.disable_notifications and app.session.member.notification_dow == nil and app.session.member.notification_hour == nil and "checked" or nil, onchange = [[ $(".view_on_digest_true")[this.checked ? "hide" : "show"](400) ]] } }