Deprecated :confirm => 'Text' option.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9937 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
1 parent
56666a41b8
commit
7b40767428
33 files changed
+45
-63
No files matched your search
@@ -3,5 +3,5 @@
|
||||
<%= 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) %>
|
||||
<%= watcher_tag(@issue, User.current) %>
|
||||
<%= link_to_if_authorized l(:button_copy), {:controller => 'issues', :action => 'new', :project_id => @project, :copy_from => @issue}, :class => 'icon icon-copy' %>
|
||||
<%= 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) %>
|
||||
<%= link_to l(:button_delete), issue_path(@issue), :data => {:confirm => issues_destroy_confirmation_message(@issue)}, :method => :delete, :class => 'icon icon-del' if User.current.allowed_to?(:delete_issues, @project) %>
|
||||
</div>
|
||||
@@ -23,7 +23,7 @@
|
||||
image_tag('link_break.png'),
|
||||
{ :url => {:controller => 'issue_relations', :action => 'destroy', :id => relation},
|
||||
:method => :delete,
|
||||
:confirm => l(:text_are_you_sure) },
|
||||
:data => {:confirm => l(:text_are_you_sure)} },
|
||||
:title => l(:label_relation_delete)
|
||||
) if authorize_for('issue_relations', 'destroy') %></td>
|
||||
</tr>
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
<div class="contextual">
|
||||
<% if !@query.new_record? && @query.editable_by?(User.current) %>
|
||||
<%= link_to l(:button_edit), edit_query_path(@query), :class => 'icon icon-edit' %>
|
||||
<%= link_to l(:button_delete), query_path(@query), :confirm => l(:text_are_you_sure),
|
||||
:method => :delete, :class => 'icon icon-del' %>
|
||||
<%= delete_link query_path(@query) %>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in new issue
Block a user