Project

General

Profile

Feature #11356 ยป confirm.diff

Pavel Vasilyev, 2012-07-10 00:11

View differences:

app/views/files/index.html.erb (working copy)
34 34
    <td class="digest"><%= file.digest %></td>
35 35
    <td align="center">
36 36
    <%= link_to(image_tag('delete.png'), attachment_path(file),
37
                                         :confirm => l(:text_are_you_sure), :method => :delete) if delete_allowed %>
37
                                         :data => l(:text_are_you_sure), :method => :delete) if delete_allowed %>
38 38
    </td>
39 39
  </tr>
40 40
  <% end
app/views/groups/index.html.erb (working copy)
16 16
  <tr class="<%= cycle 'odd', 'even' %>">
17 17
    <td><%= link_to h(group), edit_group_path(group) %></td>
18 18
    <td align="center"><%= group.users.size %></td>
19
    <td class="buttons"><%= link_to l(:button_delete), group, :confirm => l(:text_are_you_sure), :method => :delete, :class => 'icon icon-del' %></td>
19
    <td class="buttons"><%= link_to l(:button_delete), group, :data => l(:text_are_you_sure), :method => :delete, :class => 'icon icon-del' %></td>
20 20
  </tr>
21 21
<% end %>
22 22
</table>
app/views/roles/index.html.erb (working copy)
22 22
  <td class="buttons">
23 23
    <%= link_to(l(:button_delete), role_path(role),
24 24
                                  :method => :delete,
25
                                  :confirm => l(:text_are_you_sure),
25
                                  :data => l(:text_are_you_sure),
26 26
                                  :class => 'icon icon-del') unless role.builtin? %>
27 27
  </td>
28 28
  </tr>
app/views/admin/projects.html.erb (working copy)
31 31
  <td align="center"><%= checked_image project.is_public? %></td>
32 32
  <td align="center"><%= format_date(project.created_on) %></td>
33 33
  <td class="buttons">
34
    <%= link_to(l(:button_archive), { :controller => 'projects', :action => 'archive', :id => project, :status => params[:status] }, :confirm => l(:text_are_you_sure), :method => :post, :class => 'icon icon-lock') if project.active? %>
34
    <%= link_to(l(:button_archive), { :controller => 'projects', :action => 'archive', :id => project, :status => params[:status] }, :data => l(:text_are_you_sure), :method => :post, :class => 'icon icon-lock') if project.active? %>
35 35
    <%= link_to(l(:button_unarchive), { :controller => 'projects', :action => 'unarchive', :id => project, :status => params[:status] }, :method => :post, :class => 'icon icon-unlock') if !project.active? && (project.parent.nil? || project.parent.active?) %>
36 36
    <%= link_to(l(:button_copy), { :controller => 'projects', :action => 'copy', :id => project }, :class => 'icon icon-copy') %>
37 37
    <%= link_to(l(:button_delete), project_path(project), :method => :delete, :class => 'icon icon-del') %>
app/views/projects/settings/_activities.html.erb (working copy)
34 34
<div class="contextual">
35 35
<%= link_to(l(:button_reset), project_enumerations_path(@project),
36 36
            :method => :delete,
37
            :confirm => l(:text_are_you_sure),
37
            :data => l(:text_are_you_sure),
38 38
            :class => 'icon icon-del') %>
39 39
</div>
40 40

  
app/views/issues/_action_menu.html.erb (working copy)
3 3
<%= link_to l(:button_log_time), new_issue_time_entry_path(@issue), :class => 'icon icon-time-add' if User.current.allowed_to?(:log_time, @project) %>
4 4
<%= watcher_tag(@issue, User.current) %>
5 5
<%= link_to_if_authorized l(:button_copy), {:controller => 'issues', :action => 'new', :project_id => @project, :copy_from => @issue}, :class => 'icon icon-copy' %>
6
<%= link_to l(:button_delete), issue_path(@issue), :confirm => issues_destroy_confirmation_message(@issue), :method => :delete, :class => 'icon icon-del' if User.current.allowed_to?(:delete_issues, @project) %>
6
<%= link_to l(:button_delete), issue_path(@issue), :data => issues_destroy_confirmation_message(@issue), :method => :delete, :class => 'icon icon-del' if User.current.allowed_to?(:delete_issues, @project) %>
7 7
</div>
    (1-1/1)