From af168434107088a7e094bf5706d85c54f7ef42da Mon Sep 17 00:00:00 2001 From: Reinier Balt Date: Thu, 19 Aug 2010 11:00:33 +0200 Subject: [PATCH] Add warning that deleting a context will also delete all actions within it. Fixes #1049. Thanks edgimar for reporting this. Conflicts: app/views/contexts/_context_listing.rhtml --- app/views/contexts/_context_listing.rhtml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/contexts/_context_listing.rhtml b/app/views/contexts/_context_listing.rhtml index 32335457..064b0d2b 100644 --- a/app/views/contexts/_context_listing.rhtml +++ b/app/views/contexts/_context_listing.rhtml @@ -21,7 +21,7 @@ <% end %> <%= image_tag( "blank.png", :title => "Delete context", :class=>"delete_item") %> <%= apply_behavior "a.delete_context_button:click", { :prevent_default => true, :external => true} do |page, element| - page.confirming "'Are you sure that you want to ' + this.title + '?'" 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 @@ -38,4 +38,4 @@ <%= render :partial => 'contexts/context_form', :object => context %> - \ No newline at end of file +