]> source.dussan.org Git - redmine.git/commitdiff
Removed duplicate ids.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 29 Jul 2012 12:04:11 +0000 (12:04 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 29 Jul 2012 12:04:11 +0000 (12:04 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10125 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/helpers/settings_helper.rb
app/views/settings/_repositories.html.erb

index 79d74b257dc791b11f66a86b8ad0b3962bc21b8b..af901cbcf9cb7798f864b7b099cff33171962fde 100644 (file)
@@ -53,7 +53,8 @@ module SettingsHelper
           check_box_tag(
              "settings[#{setting}][]",
              value,
-             Setting.send(setting).include?(value)
+             Setting.send(setting).include?(value),
+             :id => nil
            ) + text.to_s,
           :class => 'block'
          )
@@ -72,7 +73,7 @@ module SettingsHelper
 
   def setting_check_box(setting, options={})
     setting_label(setting, options).html_safe +
-      hidden_field_tag("settings[#{setting}]", 0).html_safe +
+      hidden_field_tag("settings[#{setting}]", 0, :id => nil).html_safe +
         check_box_tag("settings[#{setting}]", 1, Setting.send("#{setting}?"), options).html_safe
   end
 
@@ -86,7 +87,7 @@ module SettingsHelper
     return content_tag(:label,
                        check_box_tag('settings[notified_events][]',
                                      notifiable.name,
-                                     Setting.notified_events.include?(notifiable.name)).html_safe +
+                                     Setting.notified_events.include?(notifiable.name), :id => nil).html_safe +
                          l_or_humanize(notifiable.name, :prefix => 'label_').html_safe,
                        :class => notifiable.parent.present? ? "parent" : '').html_safe
   end
index 6998cce5028b76b973e6296d82cc2e5c2c2252a4..9375911ed7dd5ed9b00a026d35d6f4c52ba411e8 100644 (file)
                <% enabled = Setting.send(setting).include?(value) %>
     <tr>
       <td class="scm_name">
-        <%=
-          check_box_tag(
-              "settings[#{setting}][]",
-               value,
-               enabled)
-         %>
+        <%= check_box_tag("settings[#{setting}][]", value, enabled, :id => nil) %>
         <%= text.to_s %>
       </td>
       <td>