@@ -53,7 +53,8 module SettingsHelper | |||
|
53 | 53 | check_box_tag( |
|
54 | 54 | "settings[#{setting}][]", |
|
55 | 55 | value, |
|
56 | Setting.send(setting).include?(value) | |
|
56 | Setting.send(setting).include?(value), | |
|
57 | :id => nil | |
|
57 | 58 | ) + text.to_s, |
|
58 | 59 | :class => 'block' |
|
59 | 60 | ) |
@@ -72,7 +73,7 module SettingsHelper | |||
|
72 | 73 | |
|
73 | 74 | def setting_check_box(setting, options={}) |
|
74 | 75 | setting_label(setting, options).html_safe + |
|
75 | hidden_field_tag("settings[#{setting}]", 0).html_safe + | |
|
76 | hidden_field_tag("settings[#{setting}]", 0, :id => nil).html_safe + | |
|
76 | 77 | check_box_tag("settings[#{setting}]", 1, Setting.send("#{setting}?"), options).html_safe |
|
77 | 78 | end |
|
78 | 79 | |
@@ -86,7 +87,7 module SettingsHelper | |||
|
86 | 87 | return content_tag(:label, |
|
87 | 88 | check_box_tag('settings[notified_events][]', |
|
88 | 89 | notifiable.name, |
|
89 | Setting.notified_events.include?(notifiable.name)).html_safe + | |
|
90 | Setting.notified_events.include?(notifiable.name), :id => nil).html_safe + | |
|
90 | 91 | l_or_humanize(notifiable.name, :prefix => 'label_').html_safe, |
|
91 | 92 | :class => notifiable.parent.present? ? "parent" : '').html_safe |
|
92 | 93 | end |
@@ -16,12 +16,7 | |||
|
16 | 16 | <% enabled = Setting.send(setting).include?(value) %> |
|
17 | 17 | <tr> |
|
18 | 18 | <td class="scm_name"> |
|
19 | <%= | |
|
20 | check_box_tag( | |
|
21 | "settings[#{setting}][]", | |
|
22 | value, | |
|
23 | enabled) | |
|
24 | %> | |
|
19 | <%= check_box_tag("settings[#{setting}][]", value, enabled, :id => nil) %> | |
|
25 | 20 | <%= text.to_s %> |
|
26 | 21 | </td> |
|
27 | 22 | <td> |
General Comments 0
You need to be logged in to leave comments.
Login now