diff --git a/app/views/contexts/_context_listing.rhtml b/app/views/contexts/_context_listing.rhtml index 50e12306..ed647b30 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 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 \"#{escape_javascript(h(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 diff --git a/app/views/shared/_add_new_item_form.rhtml b/app/views/shared/_add_new_item_form.rhtml index d3d64c7d..7c8c292c 100644 --- a/app/views/shared/_add_new_item_form.rhtml +++ b/app/views/shared/_add_new_item_form.rhtml @@ -28,7 +28,7 @@ - + - +