Skip to content

Commit

Permalink
delete fails in Safari Version 4.0.1 (5530.18), changed name to remove
Browse files Browse the repository at this point in the history
  • Loading branch information
saturnflyer committed Jul 16, 2009
1 parent af62638 commit d31f90b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/admin/pages/_related_content.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<li class="related_page" id="related_<%= related.id %>">
<img src="/images/admin/reorder.png" alt="reorder" class="reorder" />
<%=related.title%>
<%= link_to_function '<img src="/images/admin/minus.png" alt="Delete" />', "RelatedContent.delete('#{related.id}');", :confirm => "Are you sure you want to remove this related page?" %>
<%= link_to_function '<img src="/images/admin/minus.png" alt="Delete" />', "RelatedContent.remove('#{related.id}');", :confirm => "Are you sure you want to remove this related page?" %>
</li>
<% end %>
</ol>
Expand All @@ -15,7 +15,7 @@
</div>
<% content_for :page_scripts do %>
var RelatedContent = {
delete: function(id){
remove: function(id){
RelatedContent.unadd(id);
new Insertion.Bottom('related_content', '<input name="page[delete_relations][]" value="'+id+'"/>');
$('deleted').show();
Expand Down

0 comments on commit d31f90b

Please sign in to comment.