From 799912e119de3955b3195199837c5468f6b27b9a Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Fri, 22 Jun 2018 03:15:12 +0000 Subject: Add check/uncheck all projects button to "Email notifications" section on "My account" page (#29053). Patch by Mizuki ISHIKAWA. git-svn-id: http://svn.redmine.org/redmine/trunk@17406 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/users/_mail_notifications.html.erb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app') diff --git a/app/views/users/_mail_notifications.html.erb b/app/views/users/_mail_notifications.html.erb index 7d253f7e8..85842de56 100644 --- a/app/views/users/_mail_notifications.html.erb +++ b/app/views/users/_mail_notifications.html.erb @@ -7,7 +7,8 @@ :onchange => 'if (this.value == "selected") {$("#notified-projects").show();} else {$("#notified-projects").hide();}' ) %>

-<%= content_tag 'div', :id => 'notified-projects', :style => (@user.mail_notification == 'selected' ? '' : 'display:none;') do %> +<%= content_tag 'fieldset', :id => 'notified-projects', :style => (@user.mail_notification == 'selected' ? '' : 'display:none;') do %> + <%= toggle_checkboxes_link("#notified-projects input[type=checkbox]") %><%=l(:label_project_plural)%> <%= render_project_nested_lists(@user.projects) do |project| content_tag('label', check_box_tag( -- cgit v1.2.3