diff options
author | Go MAEDA <maeda@farend.jp> | 2018-06-22 03:15:12 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2018-06-22 03:15:12 +0000 |
commit | 799912e119de3955b3195199837c5468f6b27b9a (patch) | |
tree | c8c789f219e5a4d915d2b4a5c07163d48a772b25 /app | |
parent | c422bee4c4087711c3893f1ef2f62e5f7022565e (diff) | |
download | redmine-799912e119de3955b3195199837c5468f6b27b9a.tar.gz redmine-799912e119de3955b3195199837c5468f6b27b9a.zip |
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
Diffstat (limited to 'app')
-rw-r--r-- | app/views/users/_mail_notifications.html.erb | 3 |
1 files changed, 2 insertions, 1 deletions
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();}' ) %> </p> -<%= 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 %> + <legend><%= toggle_checkboxes_link("#notified-projects input[type=checkbox]") %><%=l(:label_project_plural)%></legend> <%= render_project_nested_lists(@user.projects) do |project| content_tag('label', check_box_tag( |