]> git.openstreetmap.org Git - rails.git/commitdiff
Use jQuery syntax instead of Prototype syntax
authorTom Hughes <tom@compton.nu>
Mon, 23 Jan 2012 21:28:01 +0000 (21:28 +0000)
committerTom Hughes <tom@compton.nu>
Mon, 23 Jan 2012 21:28:01 +0000 (21:28 +0000)
app/views/user/account.html.erb

index 988cd9121d2981ffff9d5f470163070a9a29aa15..fbc1487bbdf0928f0887b3084df486e0837cd7e5 100644 (file)
@@ -97,7 +97,7 @@
           </tr>
           <tr>
             <td><%= radio_button_tag "image_action", "new" %></td>
-            <td><%= t 'user.account.replace image' %><br /><%= file_column_field "user", "image", :onchange => "$('image_action_new').checked = true" %><br /><span class="minorNote"><%= t 'user.account.image size hint' %></span></td>
+            <td><%= t 'user.account.replace image' %><br /><%= file_column_field "user", "image", :onchange => "$('#image_action_new').prop('checked', true)" %><br /><span class="minorNote"><%= t 'user.account.image size hint' %></span></td>
           </tr>
         </table>
       <% end %>