aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorMichel Etienne2012-10-10 17:01:31 +0200
committerMichel Etienne2012-10-10 17:01:31 +0200
commitec4a135252c749670c3359c7939d9ccd4177818a (patch)
tree8e63d00bdf5b0f00e9d76554ec3f40c3f48e9f51 /app
parent1ba3e56d47fd58ab7e57dac97f6f511a3e442509 (diff)
downloadchouette-core-ec4a135252c749670c3359c7939d9ccd4177818a.tar.bz2
update :confirm syntax
Diffstat (limited to 'app')
-rw-r--r--app/views/group_of_lines/_group_of_line.erb2
-rw-r--r--app/views/group_of_lines/show.html.erb2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/views/group_of_lines/_group_of_line.erb b/app/views/group_of_lines/_group_of_line.erb
index d7d9115cc..a1933744a 100644
--- a/app/views/group_of_lines/_group_of_line.erb
+++ b/app/views/group_of_lines/_group_of_line.erb
@@ -5,7 +5,7 @@
<% if @line.nil? %>
<div class="actions">
<%= link_to t("actions.edit"), edit_referential_group_of_line_path(@referential, group_of_line), :class => "edit" %> |
- <%= link_to t("actions.destroy"), referential_group_of_line_path(@referential, group_of_line), :method => :delete, :confirm => t('group_of_lines.actions.destroy_confirm'), :class => "remove" %>
+ <%= link_to t("actions.destroy"), referential_group_of_line_path(@referential, group_of_line), :method => :delete, :data => {:confirm => t('group_of_lines.actions.destroy_confirm')}, :class => "remove" %>
</div>
<% end %>
</div>
diff --git a/app/views/group_of_lines/show.html.erb b/app/views/group_of_lines/show.html.erb
index 01084fb74..60c4b7def 100644
--- a/app/views/group_of_lines/show.html.erb
+++ b/app/views/group_of_lines/show.html.erb
@@ -42,7 +42,7 @@
<% content_for :sidebar do %>
<ul class="actions">
<li><%= link_to t('group_of_lines.actions.edit'), edit_referential_group_of_line_path(@referential, @group_of_line), :class => "edit" %></li>
- <li><%= link_to t('group_of_lines.actions.destroy'), referential_group_of_line_path(@referential, @group_of_line), :method => :delete, :confirm => t('group_of_lines.actions.destroy_confirm'), :class => "remove" %></li>
+ <li><%= link_to t('group_of_lines.actions.destroy'), referential_group_of_line_path(@referential, @group_of_line), :method => :delete, :data => {:confirm => t('group_of_lines.actions.destroy_confirm')} , :class => "remove" %></li>
<br>
</ul>
<% end %>