# HG changeset patch # User bsw # Date 1460906028 -7200 # Node ID c063e4fca5a1940ab533cc5f54ed92aee9178fab # Parent 1ee50ceb5087abe4c12dc174b55b1d0d4a0c5d89 Fixes on notification system diff -r 1ee50ceb5087 -r c063e4fca5a1 app/main/member/settings_notification.lua --- a/app/main/member/settings_notification.lua Sun Apr 17 17:11:08 2016 +0200 +++ b/app/main/member/settings_notification.lua Sun Apr 17 17:13:48 2016 +0200 @@ -57,7 +57,7 @@ attr = { id = "digest_on", type = "radio", name = "digest", value = "true", - checked = not app.session.member.digest_dow and "checked" or nil + checked = app.session.member.notification_hour ~= nil and "checked" or nil } } ui.tag{ @@ -66,7 +66,7 @@ } end } - ui.container{ attr = { style = "margin-left: 2em;" }, content = function() + ui.container{ attr = { style = "margin-left: 4em;" }, content = function() ui.tag{ content = _"Day:" } slot.put(" ") ui.field.select{ @@ -112,7 +112,7 @@ attr = { id = "digest_off", type = "radio", name = "digest", value = "false", - checked = not app.session.member.digest_dow and "checked" or nil + checked = app.session.member.notification_dow == nil and app.session.member.hotification_hour == nil and "checked" or nil } } ui.tag{