diff options
author | Phil Hughes <me@iamphill.com> | 2016-06-17 15:23:24 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-06-17 15:23:24 +0100 |
commit | a4b078bfb8b99a9852eb55abd498d65a374375e3 (patch) | |
tree | 08073e854934896e6f498df08719d87998b52676 | |
parent | 83446ce7becf3f8af49694529a44e85ada0131c9 (diff) | |
download | gitlab-ce-a4b078bfb8b99a9852eb55abd498d65a374375e3.tar.gz |
Fixed bug with label clicking in modal not working
-rw-r--r-- | app/views/shared/notifications/_custom_notifications.html.haml | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/app/views/shared/notifications/_custom_notifications.html.haml b/app/views/shared/notifications/_custom_notifications.html.haml index f0b46c7a4c0..29ba3305b3a 100644 --- a/app/views/shared/notifications/_custom_notifications.html.haml +++ b/app/views/shared/notifications/_custom_notifications.html.haml @@ -16,12 +16,11 @@ %h4.prepend-top-0 Notification events .col-lg-9 - - NotificationSetting::EMAIL_EVENTS.each do |event, index| - = index + - NotificationSetting::EMAIL_EVENTS.each_with_index do |event, index| .form-group .checkbox{ class: ("prepend-top-0" if index == 0) } - %label{ for: "events_#{event}" } - = check_box("", event, { name: "notification_setting[#{event}]", class: "js-custom-notification-event", checked: notification_setting.events[event] }) + %label{ for: "notification_setting[#{event}]" } + = check_box("", event, { name: "notification_setting[#{event}]", id: "notification_setting[#{event}]", class: "js-custom-notification-event", checked: notification_setting.events[event] }) %strong = event.to_s.humanize |