last commit contained errors. this fixes it.

This commit is contained in:
Reinier Balt 2010-08-19 11:12:09 +02:00
parent af16843410
commit 13ff472bc3

View file

@ -21,7 +21,7 @@
<% end %>
<a class="delete_context_button" href="<%= formatted_context_path(context, :js) %>" title="delete the context '<%= context.name %>'"><%= image_tag( "blank.png", :title => "Delete context", :class=>"delete_item") %></a>
<%= apply_behavior "a.delete_context_button:click", { :prevent_default => true, :external => true} do |page, element|
page.confirming "'Are you sure that you want to delete the context '#{context.name}'? Be aware that this will also delete all (repeating) actions in this context!'" do
page.confirming "Are you sure that you want to delete the context \"#{context.name}\"? Be aware that this will also delete all (repeating) actions in this context!" do
element.up('.context').start_waiting
page << remote_to_href(:method => 'delete')
end