liquid_feedback_frontend

changeset 1286:a501cdd10fbb

Changed default option when changing notification level
author bsw
date Mon Apr 18 09:57:49 2016 +0200 (2016-04-18)
parents 48d843cd65f0
children 6154987e3545
files app/main/member/settings_notification.lua
line diff
     1.1 --- a/app/main/member/settings_notification.lua	Mon Apr 18 09:53:22 2016 +0200
     1.2 +++ b/app/main/member/settings_notification.lua	Mon Apr 18 09:57:49 2016 +0200
     1.3 @@ -59,7 +59,7 @@
     1.4                attr = {
     1.5                  id = "digest_on",
     1.6                  type = "radio", name = "digest", value = "true",
     1.7 -                checked = app.session.member.notification_hour ~= nil and "checked" or nil,
     1.8 +                checked = app.session.member.disable_notifications or app.session.member.notification_hour ~= nil and "checked" or nil,
     1.9                  onchange = [[ $(".view_on_digest_true")[this.checked ? "show" : "hide"](400) ]]
    1.10                }
    1.11              }
    1.12 @@ -120,7 +120,7 @@
    1.13                attr = {
    1.14                  id = "digest_off",
    1.15                  type = "radio", name = "digest", value = "false",
    1.16 -                checked = app.session.member.notification_dow == nil and app.session.member.notification_hour == nil and "checked" or nil,
    1.17 +                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,
    1.18                  onchange = [[ $(".view_on_digest_true")[this.checked ? "hide" : "show"](400) ]]
    1.19                }
    1.20              }

Impressum / About Us