mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-01 06:48:49 +01:00
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
This commit is contained in:
parent
468ac1eb26
commit
af16843410
1 changed files with 2 additions and 2 deletions
|
|
@ -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 ' + 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 @@
|
|||
</div>
|
||||
</div>
|
||||
<%= render :partial => 'contexts/context_form', :object => context %>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue