diff app/views/timelog/_list.html.erb @ 1115:433d4f72a19b redmine-2.2

Update to Redmine SVN revision 11137 on 2.2-stable branch
author Chris Cannam
date Mon, 07 Jan 2013 12:01:42 +0000
parents cbb26bc654de
children 622f24f53b42 261b3d9a4903
line wrap: on
line diff
--- a/app/views/timelog/_list.html.erb	Wed Jun 27 14:54:18 2012 +0100
+++ b/app/views/timelog/_list.html.erb	Mon Jan 07 12:01:42 2013 +0000
@@ -1,4 +1,4 @@
-<% form_tag({}) do -%>
+<%= form_tag({}) do -%>
 <%= hidden_field_tag 'back_url', url_for(params) %>
 <div class="autoscroll">
 <table class="list time-entries">
@@ -7,7 +7,7 @@
 <th class="checkbox hide-when-print">
   <%= link_to image_tag('toggle_check.png'),
     {},
-    :onclick => 'toggleIssuesSelection(Element.up(this, "form")); return false;',
+    :onclick => 'toggleIssuesSelection(this); return false;',
     :title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}" %>
 </th>
 <%= sort_header_tag('spent_on', :caption => l(:label_date), :default_order => 'desc') %>
@@ -37,10 +37,10 @@
 <td class="hours"><%= html_hours("%.2f" % entry.hours) %></td>
 <td align="center">
 <% if entry.editable_by?(User.current) -%>
-    <%= link_to image_tag('edit.png'), {:controller => 'timelog', :action => 'edit', :id => entry, :project_id => nil},
+    <%= link_to image_tag('edit.png'), edit_time_entry_path(entry),
                                        :title => l(:button_edit) %>
-    <%= link_to image_tag('delete.png'), {:controller => 'timelog', :action => 'destroy', :id => entry, :project_id => nil},
-                                         :confirm => l(:text_are_you_sure),
+    <%= link_to image_tag('delete.png'), time_entry_path(entry),
+                                         :data => {:confirm => l(:text_are_you_sure)},
                                          :method => :delete,
                                          :title => l(:button_delete) %>
 <% end -%>